Skip to content

Commit b1a95ce

Browse files
kvprasoonSean Wheeler
authored andcommitted
Help doc enhancement for ConvertFrom-StringData cmdlet (#2002)
* Help doc correction Removed an unwanted * from Notes section Corrected intenting for last example Removed unwanted ... from example 2 * Help doc wnhancements in all versions for ConvertFrom-StringData Removed an unwanted * from Notes section Corrected intenting for last example Removed unwanted ... from example 2
1 parent ea3e851 commit b1a95ce

File tree

5 files changed

+18
-20
lines changed

5 files changed

+18
-20
lines changed

reference/3.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ TypeName: System.String
6666
Name MemberType Definition
6767
---- ---------- ----------
6868
Clone Method System.Object Clone()
69-
...
69+
7070
PS C:\> $hash = convertfrom-stringdata -stringdata $p
7171
PS C:\> $hash | get-member
7272
TypeName: System.Collections.Hashtable
7373
7474
Name MemberType Definition
7575
---- ---------- ----------
7676
Add Method System.Void Add(Object key, Object
77-
...
77+
7878
```
7979

8080
These commands demonstrate that ConvertFrom-StringData actually converts a here-string to a hash table.
@@ -246,9 +246,8 @@ ConvertFrom-StringData returns a hash table that it creates from the key/value p
246246
* A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally. For more information, see about_Quoting_Rules.
247247
248248
ConvertFrom-StringData can be useful in scripts that display user messages in multiple spoken languages.
249-
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
249+
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
250250
251-
*
252251
## RELATED LINKS
253252
254253
[about_Quoting_Rules](../Microsoft.PowerShell.Core/About/about_Quoting_Rules.md)

reference/4.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ TypeName: System.String
6969
Name MemberType Definition
7070
---- ---------- ----------
7171
Clone Method System.Object Clone()
72-
...
72+
7373
PS C:\> $hash = convertfrom-stringdata -stringdata $p
7474
PS C:\> $hash | get-member
7575
TypeName: System.Collections.Hashtable
7676
7777
Name MemberType Definition
7878
---- ---------- ----------
7979
Add Method System.Void Add(Object key, Object
80-
...
80+
8181
```
8282

8383
These commands demonstrate that ConvertFrom-StringData actually converts a here-string to a hash table.
@@ -259,9 +259,8 @@ ConvertFrom-StringData returns a hash table that it creates from the key/value p
259259
* A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally. For more information, see about_Quoting_Rules.
260260
261261
ConvertFrom-StringData can be useful in scripts that display user messages in multiple spoken languages.
262-
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
262+
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
263263
264-
*
265264
266265
## RELATED LINKS
267266

reference/5.0/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,14 @@ TypeName: System.String
6868
Name MemberType Definition
6969
---- ---------- ----------
7070
Clone Method System.Object Clone()
71-
... PS C:\> $Hash = ConvertFrom-StringData -StringData $P
71+
72+
PS C:\> $Hash = ConvertFrom-StringData -StringData $P
7273
PS C:\> $Hash | Get-Member
7374
TypeName: System.Collections.Hashtable
7475
Name MemberType Definition
7576
---- ---------- ----------
7677
Add Method System.Void Add(Object key, Object
77-
...
78+
7879
```
7980

8081
These commands demonstrate that **ConvertFrom-StringData** actually converts a here-string to a hash table.
@@ -251,9 +252,8 @@ This cmdlet returns a hash table that it creates from the key/value pairs.
251252
* A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally.
252253
253254
This cmdlet can be useful in scripts that display user messages in multiple spoken languages.
254-
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
255+
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
255256
256-
*
257257
258258
## RELATED LINKS
259259

reference/5.1/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@ TypeName: System.String
6969
Name MemberType Definition
7070
---- ---------- ----------
7171
Clone Method System.Object Clone()
72-
... PS C:\> $Hash = ConvertFrom-StringData -StringData $P
72+
73+
PS C:\> $Hash = ConvertFrom-StringData -StringData $P
7374
PS C:\> $Hash | Get-Member
7475
TypeName: System.Collections.Hashtable
7576
Name MemberType Definition
7677
---- ---------- ----------
7778
Add Method System.Void Add(Object key, Object
78-
...
79+
7980
```
8081

8182
These commands demonstrate that **ConvertFrom-StringData** actually converts a here-string to a hash table.
@@ -252,9 +253,8 @@ This cmdlet returns a hash table that it creates from the key/value pairs.
252253
* A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally.
253254
254255
This cmdlet can be useful in scripts that display user messages in multiple spoken languages.
255-
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
256+
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
256257
257-
*
258258
259259
## RELATED LINKS
260260

reference/6/Microsoft.PowerShell.Utility/ConvertFrom-StringData.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,14 @@ TypeName: System.String
7070
Name MemberType Definition
7171
---- ---------- ----------
7272
Clone Method System.Object Clone()
73-
... PS C:\> $Hash = ConvertFrom-StringData -StringData $P
73+
74+
PS C:\> $Hash = ConvertFrom-StringData -StringData $P
7475
PS C:\> $Hash | Get-Member
7576
TypeName: System.Collections.Hashtable
7677
Name MemberType Definition
7778
---- ---------- ----------
7879
Add Method System.Void Add(Object key, Object
79-
...
80+
8081
```
8182

8283
These commands demonstrate that **ConvertFrom-StringData** actually converts a here-string to a hash table.
@@ -288,9 +289,8 @@ This cmdlet returns a hash table that it creates from the key/value pairs.
288289
* A here-string is a string consisting of one or more lines within which quotation marks are interpreted literally.
289290
290291
This cmdlet can be useful in scripts that display user messages in multiple spoken languages.
291-
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
292+
You can use the dictionary-style hash tables to isolate text strings from code, such as in resource files, and to format the text strings for use in translation tools.
292293
293-
*
294294
295295
## RELATED LINKS
296296

0 commit comments

Comments
 (0)