Skip to content

Commit e8ba652

Browse files
Provided sample output
1 parent a192c49 commit e8ba652

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

snippets/cpp/VS_Snippets_CLR/Environment.MachineName/CPP/machinename.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ int main()
1212

1313
/*
1414
This example produces the following results:
15-
(Any result that is lengthy, specific to the machine on which this sample was tested, or reveals information that should remain secure, has been omitted and marked S"!---OMITTED---!".)
1615
17-
MachineName: !---OMITTED---!
16+
MachineName: MyDesktop
1817
*/
1918
//</snippet1>

snippets/csharp/System/Environment/MachineName/machinename.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ public static void Main()
1313
}
1414
/*
1515
This example produces the following results:
16-
(Any result that is lengthy, specific to the machine on which this sample was tested, or reveals information that should remain secure, has been omitted and marked "!---OMITTED---!".)
1716
18-
MachineName: !---OMITTED---!
17+
MachineName: MyDesktop
1918
*/
2019
//</snippet1>

snippets/fsharp/System/Environment/MachineName/machinename.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ open System
66
printfn $"\nMachineName: {Environment.MachineName}"
77

88
// This example produces the following results:
9-
// (Any result that is lengthy, specific to the machine on which this sample was tested, or reveals information that should remain secure, has been omitted and marked "!---OMITTED---!".)
109
//
11-
// MachineName: !---OMITTED---!
10+
// MachineName: MyDesktop
1211
//</snippet1>

snippets/visualbasic/VS_Snippets_CLR/Environment.MachineName/VB/machinename.vb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ Class Sample
99
End Class
1010
'
1111
'This example produces the following results:
12-
'(Any result that is lengthy, specific to the machine on which this sample was tested,
13-
'or reveals information that should remain secure, has been omitted
14-
'and marked "!---OMITTED---!".)
1512
'
16-
'MachineName: !---OMITTED---!
13+
'MachineName: MyDesktop
1714
'
1815
'</snippet1>

xml/System/Environment.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ The following example creates environment variables for the <xref:System.Environ
15801580
The name of this computer is established at system startup when the name is read from the registry. If this computer is a node in a cluster, the name of the node is returned.
15811581
15821582
## Examples
1583-
The following example displays the name of the computer that runs the code example. (The machine name is omitted from the example output for security reasons.)
1583+
The following example displays the name of the computer that runs the code example. An example computer name has been given here, however you should never reveal your computers name for security reasons.
15841584
15851585
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/Environment.MachineName/CPP/machinename.cpp" id="Snippet1":::
15861586
:::code language="csharp" source="~/snippets/csharp/System/Environment/MachineName/machinename.cs" id="Snippet1":::

0 commit comments

Comments
 (0)