|
73 | 73 | The following code example demonstrates using a <xref:System.Net.HttpListener>.
|
74 | 74 |
|
75 | 75 | [!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)]
|
| 76 | + [!code-vb[Net_Listener_Basic#2](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#2)] |
76 | 77 |
|
77 | 78 | ]]></format>
|
78 | 79 | </remarks>
|
|
117 | 118 | The following code example demonstrates using the <xref:System.Net.HttpListener> constructor to create a new <xref:System.Net.HttpListener> object. For the complete example, see the <xref:System.Net.HttpListener> class topic.
|
118 | 119 |
|
119 | 120 | [!code-csharp[Net_listener_Basic#9](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#9)]
|
| 121 | + [!code-vb[Net_Listener_Basic#9](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#9)] |
120 | 122 |
|
121 | 123 | ]]></format>
|
122 | 124 | </remarks>
|
|
170 | 172 | The following code example demonstrates calling this method.
|
171 | 173 |
|
172 | 174 | [!code-csharp[Net_Listener_Basic#11](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#11)]
|
| 175 | + [!code-vb[Net_Listener_Basic#11](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#11)] |
173 | 176 |
|
174 | 177 | ]]></format>
|
175 | 178 | </remarks>
|
|
232 | 235 | The following code example demonstrates using the <xref:System.Net.HttpListener.AuthenticationSchemes%2A> property to specify an authentication scheme.
|
233 | 236 |
|
234 | 237 | [!code-csharp[Net_listener_Basic#14](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#14)]
|
| 238 | + [!code-vb[Net_Listener_Basic#14](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#14)] |
235 | 239 |
|
236 | 240 | ]]></format>
|
237 | 241 | </remarks>
|
|
355 | 359 | The following code example demonstrates using the <xref:System.Net.HttpListener.BeginGetContext%2A> method to specify a callback method that will handle incoming client requests.
|
356 | 360 |
|
357 | 361 | [!code-csharp[Net_Listener_Basic#12](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#12)]
|
| 362 | + [!code-vb[Net_Listener_Basic#12](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#12)] |
358 | 363 |
|
359 | 364 | The following code example implements a callback method.
|
360 | 365 |
|
361 | 366 | [!code-csharp[Net_Listener_Basic#13](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#13)]
|
| 367 | + [!code-vb[Net_Listener_Basic#13](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#13)] |
362 | 368 |
|
363 | 369 | ]]></format>
|
364 | 370 | </remarks>
|
|
413 | 419 | The following code example demonstrates calling the `Close` method:
|
414 | 420 |
|
415 | 421 | [!code-csharp[Net_Listener_Basic#12](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#12)]
|
| 422 | +[!code-vb[Net_Listener_Basic#12](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#12)] |
416 | 423 |
|
417 | 424 | ]]></format>
|
418 | 425 | </remarks>
|
@@ -543,6 +550,7 @@ The following code example demonstrates calling the `Close` method:
|
543 | 550 | The following code example shows the implementation of a callback method that calls the <xref:System.Net.HttpListener.EndGetContext%2A> method.
|
544 | 551 |
|
545 | 552 | [!code-csharp[Net_Listener_Basic#13](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#13)]
|
| 553 | + [!code-vb[Net_Listener_Basic#13](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#13)] |
546 | 554 |
|
547 | 555 | ]]></format>
|
548 | 556 | </remarks>
|
@@ -726,6 +734,7 @@ The following code example demonstrates calling the `Close` method:
|
726 | 734 | The following code example demonstrates calling this method.
|
727 | 735 |
|
728 | 736 | [!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)]
|
| 737 | + [!code-vb[Net_Listener_Basic#2](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#2)] |
729 | 738 |
|
730 | 739 | ]]></format>
|
731 | 740 | </remarks>
|
@@ -832,6 +841,7 @@ The following code example demonstrates calling the `Close` method:
|
832 | 841 | The following code example demonstrates setting this property.
|
833 | 842 |
|
834 | 843 | [!code-csharp[Net_Listener_Basic#14](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#14)]
|
| 844 | + [!code-vb[Net_Listener_Basic#14](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#14)] |
835 | 845 |
|
836 | 846 | ]]></format>
|
837 | 847 | </remarks>
|
@@ -881,6 +891,7 @@ The following code example demonstrates calling the `Close` method:
|
881 | 891 | The following code example demonstrates using this property to determine the listening state of an instance.
|
882 | 892 |
|
883 | 893 | [!code-csharp[Net_Listener_Basic#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#1)]
|
| 894 | + [!code-vb[Net_Listener_Basic#1](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#1)] |
884 | 895 |
|
885 | 896 | ]]></format>
|
886 | 897 | </remarks>
|
@@ -929,6 +940,7 @@ The following code example demonstrates calling the `Close` method:
|
929 | 940 | The following code example demonstrates the use of the <xref:System.Net.HttpListener.IsSupported%2A> property to detect whether an <xref:System.Net.HttpListener> object can be used with the current operating system.
|
930 | 941 |
|
931 | 942 | [!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)]
|
| 943 | + [!code-vb[Net_Listener_Basic#2](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#2)] |
932 | 944 |
|
933 | 945 | ]]></format>
|
934 | 946 | </remarks>
|
@@ -976,6 +988,7 @@ The following code example demonstrates calling the `Close` method:
|
976 | 988 | The following code example demonstrates using the <xref:System.Net.HttpListener.Prefixes%2A> property to obtain and print the URI prefixes that are handled.
|
977 | 989 |
|
978 | 990 | [!code-csharp[Net_Listener_Basic#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#1)]
|
| 991 | + [!code-vb[Net_Listener_Basic#1](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#1)] |
979 | 992 |
|
980 | 993 | ]]></format>
|
981 | 994 | </remarks>
|
@@ -1031,6 +1044,7 @@ The following code example demonstrates calling the `Close` method:
|
1031 | 1044 | The following code example demonstrates setting the <xref:System.Net.HttpListener.Realm%2A> property.
|
1032 | 1045 |
|
1033 | 1046 | [!code-csharp[Net_Listener_Basic#10](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#10)]
|
| 1047 | + [!code-vb[Net_Listener_Basic#10](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#10)] |
1034 | 1048 |
|
1035 | 1049 | ]]></format>
|
1036 | 1050 | </remarks>
|
@@ -1084,6 +1098,7 @@ The following code example demonstrates calling the `Close` method:
|
1084 | 1098 | The following code example demonstrates using the <xref:System.Net.HttpListener.Start%2A> method to begin processing incoming requests.
|
1085 | 1099 |
|
1086 | 1100 | [!code-csharp[Net_Listener_Basic#12](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#12)]
|
| 1101 | + [!code-vb[Net_Listener_Basic#12](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#12)] |
1087 | 1102 |
|
1088 | 1103 | ]]></format>
|
1089 | 1104 | </remarks>
|
@@ -1138,7 +1153,8 @@ The following code example demonstrates calling the `Close` method:
|
1138 | 1153 |
|
1139 | 1154 | The following code example demonstrates using the <xref:System.Net.HttpListener.Stop%2A> method to stop processing incoming requests.
|
1140 | 1155 |
|
1141 |
| -[!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)] |
| 1156 | +[!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)] |
| 1157 | +[!code-vb[Net_Listener_Basic#2](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#2)] |
1142 | 1158 |
|
1143 | 1159 | ]]></format>
|
1144 | 1160 | </remarks>
|
@@ -1295,6 +1311,7 @@ The following code example demonstrates using the <xref:System.Net.HttpListener.
|
1295 | 1311 | The following code example demonstrates setting this property.
|
1296 | 1312 |
|
1297 | 1313 | [!code-csharp[Net_Listener_Basic#14](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#14)]
|
| 1314 | + [!code-vb[Net_Listener_Basic#14](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#14)] |
1298 | 1315 |
|
1299 | 1316 | ]]></format>
|
1300 | 1317 | </remarks>
|
|
0 commit comments