Skip to content

Commit 7e2af98

Browse files
author
Ron Petrusha
authored
Added example output (#476)
1 parent c10bd82 commit 7e2af98

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

snippets/cpp/VS_Snippets_Remoting/NCLUriExamples/CPP/uriexamples.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ namespace Example
9898
Console::WriteLine( "Uri {0} a UNC path", uriAddress2->IsUnc ? (String^)"is" : "is not" );
9999
Console::WriteLine( "Uri {0} a local host", uriAddress2->IsLoopback ? (String^)"is" : "is not" );
100100
Console::WriteLine( "Uri {0} a file", uriAddress2->IsFile ? (String^)"is" : "is not" );
101+
// The example displays the following output:
102+
// \\server\filename.ext
103+
// Uri is a UNC path
104+
// Uri is not a local host
105+
// Uri is a file
101106
//</snippet6>
102107
}
103108

snippets/csharp/VS_Snippets_Remoting/NCLUriExamples/CS/uriexamples.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ private static void GetParts()
9595
Console.WriteLine("Uri {0} a UNC path", uriAddress2.IsUnc ? "is" : "is not");
9696
Console.WriteLine("Uri {0} a local host", uriAddress2.IsLoopback ? "is" : "is not");
9797
Console.WriteLine("Uri {0} a file", uriAddress2.IsFile ? "is" : "is not");
98+
// The example displays the following output:
99+
// \\server\filename.ext
100+
// Uri is a UNC path
101+
// Uri is not a local host
102+
// Uri is a file
98103
//</snippet6>
99104

100105
}

snippets/visualbasic/VS_Snippets_Remoting/NCLUriExamples/VB/uriexamples.vb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,13 @@ Public Class Test
9191
Console.WriteLine("Uri {0} a UNC path", IIf(uriAddress2.IsUnc, "is", "is not")) 'TODO: For performance reasons this should be changed to nested IF statements
9292
Console.WriteLine("Uri {0} a local host", IIf(uriAddress2.IsLoopback, "is", "is not")) 'TODO: For performance reasons this should be changed to nested IF statements
9393
Console.WriteLine("Uri {0} a file", IIf(uriAddress2.IsFile, "is", "is not")) 'TODO: For performance reasons this should be changed to nested IF statements
94-
95-
End Sub 'GetParts
96-
'</snippet6>
94+
' The example displays the following output:
95+
' \\server\filename.ext
96+
' Uri is a UNC path
97+
' Uri is not a local host
98+
' Uri is a file
99+
' </snippet6>
100+
End Sub
97101

98102
Private Shared Sub HexConversions()
99103
'<snippet1>

0 commit comments

Comments
 (0)