Skip to content

Commit

Permalink
Updating EZOut.HelpOut.ps1 (changing import logic) (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Jul 25, 2022
1 parent 1028500 commit 127cab1
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docs/Out-TypeData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

Out-TypeData
------------
### Synopsis
Takes a series of type views and format actions and outputs a type data XML

---
### Description

Takes a series of type views and format actions and outputs a type data XML

---
### Examples
#### EXAMPLE 1
```PowerShell
# Create a quick view for any XML element.
# Piping it into Out-FormatData will make one or more format views into a full format XML file
# Piping the output of that into Add-FormatData will create a temporary module to hold the formatting data
# There's also a Remove-FormatData and
Write-FormatView -TypeName "System.Xml.XmlNode" -Wrap -Property "Xml" -VirtualProperty @{
"Xml" = {
$strWrite = New-Object IO.StringWriter
([xml]$_.Outerxml).Save($strWrite)
"$strWrite"
}
} |
Out-FormatData
```

---
### Parameters
#### **TypeXml**

The Format XML Document. The XML document can be supplied directly,
but it's easier to use Write-FormatView to create it



|Type |Requried|Postion|PipelineInput |
|-------------------|--------|-------|--------------|
|```[XmlDocument]```|true |1 |true (ByValue)|
---
### Syntax
```PowerShell
Out-TypeData [-TypeXml] <XmlDocument> [<CommonParameters>]
```
---


0 comments on commit 127cab1

Please sign in to comment.