Skip to content

Commit 844326e

Browse files
committed
Revert "Fix parameter's position in ConvertTo-Xml.md (MicrosoftDocs#1929)"
This reverts commit 6712f85.
1 parent 4434e71 commit 844326e

File tree

5 files changed

+57
-18
lines changed

5 files changed

+57
-18
lines changed

reference/3.0/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ title: ConvertTo-Xml
1313
Creates an XML-based representation of an object.
1414
## SYNTAX
1515

16-
```powershell
17-
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
18-
[-As <String>] [<CommonParameters>]
16+
```
17+
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
18+
[<CommonParameters>]
1919
```
2020

2121
## DESCRIPTION
@@ -98,7 +98,7 @@ Parameter Sets: (All)
9898
Aliases:
9999

100100
Required: True
101-
Position: 0
101+
Position: 1
102102
Default value: None
103103
Accept pipeline input: True (ByValue)
104104
Accept wildcard characters: True

reference/4.0/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Creates an XML-based representation of an object.
1515

1616
## SYNTAX
1717

18-
```powershell
19-
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
20-
[-As <String>] [<CommonParameters>]
18+
```
19+
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
20+
[<CommonParameters>]
2121
```
2222

2323
## DESCRIPTION
@@ -102,7 +102,7 @@ Parameter Sets: (All)
102102
Aliases:
103103

104104
Required: True
105-
Position: 0
105+
Position: 1
106106
Default value: None
107107
Accept pipeline input: True (ByValue)
108108
Accept wildcard characters: True

reference/5.0/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Creates an XML-based representation of an object.
1515

1616
## SYNTAX
1717

18-
```powershell
19-
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
20-
[-As <String>] [<CommonParameters>]
18+
```
19+
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
20+
[<CommonParameters>]
2121
```
2222

2323
## DESCRIPTION

reference/5.1/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Creates an XML-based representation of an object.
1515

1616
## SYNTAX
1717

18-
```powershell
19-
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
20-
[-As <String>] [<CommonParameters>]
18+
```
19+
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
20+
[<CommonParameters>]
2121
```
2222

2323
## DESCRIPTION

reference/6/Microsoft.PowerShell.Utility/ConvertTo-Xml.md

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Creates an XML-based representation of an object.
1515

1616
## SYNTAX
1717

18-
```powershell
19-
ConvertTo-Xml [-InputObject] <PSObject> [-Depth <Int32>] [-NoTypeInformation]
20-
[-As <String>] [<CommonParameters>]
18+
```
19+
ConvertTo-Xml [-Depth <Int32>] [-InputObject] <PSObject> [-NoTypeInformation] [-As <String>]
20+
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
2121
```
2222

2323
## DESCRIPTION
@@ -95,6 +95,45 @@ Accept pipeline input: False
9595
Accept wildcard characters: False
9696
```
9797
98+
### -InformationAction
99+
-- String: Returns a single string.
100+
101+
-- Stream: Returns an array of strings.
102+
103+
-- Document: Returns an XmlDocument object.
104+
105+
The default is Document.```yaml
106+
Type: ActionPreference
107+
Parameter Sets: (All)
108+
Aliases: infa
109+
Accepted values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend
110+
111+
Required: False
112+
Position: Named
113+
Default value: None
114+
Accept pipeline input: False
115+
Accept wildcard characters: False
116+
```
117+
118+
### -InformationVariable
119+
-- String: Returns a single string.
120+
121+
-- Stream: Returns an array of strings.
122+
123+
-- Document: Returns an XmlDocument object.
124+
125+
The default is Document.```yaml
126+
Type: String
127+
Parameter Sets: (All)
128+
Aliases: iv
129+
130+
Required: False
131+
Position: Named
132+
Default value: None
133+
Accept pipeline input: False
134+
Accept wildcard characters: False
135+
```
136+
98137
### -InputObject
99138
Specifies the object to be converted.
100139
Enter a variable that contains the objects, or type a command or expression that gets the objects.
@@ -106,7 +145,7 @@ Parameter Sets: (All)
106145
Aliases:
107146

108147
Required: True
109-
Position: 0
148+
Position: 1
110149
Default value: None
111150
Accept pipeline input: True (ByValue)
112151
Accept wildcard characters: False

0 commit comments

Comments
 (0)