Skip to content

Commit 6715fda

Browse files
dsychinRon Petrusha
authored andcommitted
add references to new vb snippets (#2415)
1 parent b969cc7 commit 6715fda

File tree

5 files changed

+66
-1
lines changed

5 files changed

+66
-1
lines changed

xml/System.Net/HttpListener.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
The following code example demonstrates using a <xref:System.Net.HttpListener>.
7474
7575
[!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)]
7677
7778
]]></format>
7879
</remarks>
@@ -117,6 +118,7 @@
117118
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.
118119
119120
[!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)]
120122
121123
]]></format>
122124
</remarks>
@@ -170,6 +172,7 @@
170172
The following code example demonstrates calling this method.
171173
172174
[!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)]
173176
174177
]]></format>
175178
</remarks>
@@ -232,6 +235,7 @@
232235
The following code example demonstrates using the <xref:System.Net.HttpListener.AuthenticationSchemes%2A> property to specify an authentication scheme.
233236
234237
[!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)]
235239
236240
]]></format>
237241
</remarks>
@@ -355,10 +359,12 @@
355359
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.
356360
357361
[!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)]
358363
359364
The following code example implements a callback method.
360365
361366
[!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)]
362368
363369
]]></format>
364370
</remarks>
@@ -413,6 +419,7 @@
413419
The following code example demonstrates calling the `Close` method:
414420
415421
[!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)]
416423
417424
]]></format>
418425
</remarks>
@@ -543,6 +550,7 @@ The following code example demonstrates calling the `Close` method:
543550
The following code example shows the implementation of a callback method that calls the <xref:System.Net.HttpListener.EndGetContext%2A> method.
544551
545552
[!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)]
546554
547555
]]></format>
548556
</remarks>
@@ -726,6 +734,7 @@ The following code example demonstrates calling the `Close` method:
726734
The following code example demonstrates calling this method.
727735
728736
[!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)]
729738
730739
]]></format>
731740
</remarks>
@@ -832,6 +841,7 @@ The following code example demonstrates calling the `Close` method:
832841
The following code example demonstrates setting this property.
833842
834843
[!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)]
835845
836846
]]></format>
837847
</remarks>
@@ -881,6 +891,7 @@ The following code example demonstrates calling the `Close` method:
881891
The following code example demonstrates using this property to determine the listening state of an instance.
882892
883893
[!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)]
884895
885896
]]></format>
886897
</remarks>
@@ -929,6 +940,7 @@ The following code example demonstrates calling the `Close` method:
929940
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.
930941
931942
[!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)]
932944
933945
]]></format>
934946
</remarks>
@@ -976,6 +988,7 @@ The following code example demonstrates calling the `Close` method:
976988
The following code example demonstrates using the <xref:System.Net.HttpListener.Prefixes%2A> property to obtain and print the URI prefixes that are handled.
977989
978990
[!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)]
979992
980993
]]></format>
981994
</remarks>
@@ -1031,6 +1044,7 @@ The following code example demonstrates calling the `Close` method:
10311044
The following code example demonstrates setting the <xref:System.Net.HttpListener.Realm%2A> property.
10321045
10331046
[!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)]
10341048
10351049
]]></format>
10361050
</remarks>
@@ -1084,6 +1098,7 @@ The following code example demonstrates calling the `Close` method:
10841098
The following code example demonstrates using the <xref:System.Net.HttpListener.Start%2A> method to begin processing incoming requests.
10851099
10861100
[!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)]
10871102
10881103
]]></format>
10891104
</remarks>
@@ -1138,7 +1153,8 @@ The following code example demonstrates calling the `Close` method:
11381153
11391154
The following code example demonstrates using the <xref:System.Net.HttpListener.Stop%2A> method to stop processing incoming requests.
11401155
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)]
11421158
11431159
]]></format>
11441160
</remarks>
@@ -1295,6 +1311,7 @@ The following code example demonstrates using the <xref:System.Net.HttpListener.
12951311
The following code example demonstrates setting this property.
12961312
12971313
[!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)]
12981315
12991316
]]></format>
13001317
</remarks>

xml/System.Net/HttpListenerContext.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
The following code example displays the user information for a client request.
4444
4545
[!code-csharp[Net_Listener_Basic#8](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#8)]
46+
[!code-vb[Net_Listener_Basic#8](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#8)]
4647
4748
]]></format>
4849
</remarks>
@@ -373,6 +374,7 @@
373374
The following code example demonstrates calling this method. The `listener` variable holds an <xref:System.Net.HttpListener> object.
374375
375376
[!code-csharp[Net_Listener_Basic#3](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#3)]
377+
[!code-vb[Net_Listener_Basic#3](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#3)]
376378
377379
]]></format>
378380
</remarks>
@@ -420,6 +422,7 @@
420422
The following code example demonstrates getting the response to a client's request and adding the response body.
421423
422424
[!code-csharp[Net_Listener_Basic#3](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#3)]
425+
[!code-vb[Net_Listener_Basic#3](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#3)]
423426
424427
]]></format>
425428
</remarks>
@@ -472,6 +475,7 @@
472475
The following code example demonstrates accessing identity and authentication information about the client, and returning it to the client in the response.
473476
474477
[!code-csharp[Net_Listener_Basic#8](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#8)]
478+
[!code-vb[Net_Listener_Basic#8](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#8)]
475479
476480
]]></format>
477481
</remarks>

xml/System.Net/HttpListenerPrefixCollection.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
The following code example creates an <xref:System.Net.HttpListener> and adds user-specified prefixes to its <xref:System.Net.HttpListenerPrefixCollection>.
5353
5454
[!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)]
55+
[!code-vb[Net_Listener_Basic#2](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#2)]
5556
5657
]]></format>
5758
</remarks>
@@ -111,6 +112,7 @@
111112
The following code example creates an <xref:System.Net.HttpListener> and adds user-specified prefixes to its <xref:System.Net.HttpListenerPrefixCollection>.
112113
113114
[!code-csharp[Net_Listener_Basic#2](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#2)]
115+
[!code-vb[Net_Listener_Basic#2](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#2)]
114116
115117
]]></format>
116118
</remarks>
@@ -173,6 +175,7 @@
173175
The following code example removes all prefixes in an <xref:System.Net.HttpListenerPrefixCollection>.
174176
175177
[!code-csharp[Net_Listener_Basic#6](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#6)]
178+
[!code-vb[Net_Listener_Basic#6](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#6)]
176179
177180
]]></format>
178181
</remarks>
@@ -234,6 +237,7 @@
234237
The following code example checks to see whether a user-specified prefix is contained in the prefix collection of an <xref:System.Net.HttpListener>.
235238
236239
[!code-csharp[Net_Listener_Basic#4](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#4)]
240+
[!code-vb[Net_Listener_Basic#4](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#4)]
237241
238242
]]></format>
239243
</remarks>
@@ -306,6 +310,7 @@
306310
The following code example copies the prefixes in a <xref:System.Net.HttpListenerPrefixCollection>.
307311
308312
[!code-csharp[Net_Listener_Basic#7](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#7)]
313+
[!code-vb[Net_Listener_Basic#7](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#7)]
309314
310315
]]></format>
311316
</remarks>
@@ -365,6 +370,7 @@
365370
The following code example copies the prefixes in a <xref:System.Net.HttpListenerPrefixCollection>.
366371
367372
[!code-csharp[Net_Listener_Basic#7](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#7)]
373+
[!code-vb[Net_Listener_Basic#7](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#7)]
368374
369375
]]></format>
370376
</remarks>
@@ -415,6 +421,7 @@
415421
The following code example displays the prefixes in a collection.
416422
417423
[!code-csharp[Net_Listener_Basic#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#1)]
424+
[!code-vb[Net_Listener_Basic#1](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#1)]
418425
419426
]]></format>
420427
</remarks>
@@ -471,6 +478,7 @@
471478
The following code example demonstrates enumerating through a collection. Note that the Visual Basic and C# examples use language specific statements to enumerate through the collection instead of retrieving the enumerator.
472479
473480
[!code-csharp[Net_Listener_Basic#1](~/samples/snippets/csharp/VS_Snippets_Remoting/Net_Listener_Basic/CS/test.cs#1)]
481+
[!code-vb[Net_Listener_Basic#1](~/samples/snippets/visualbasic/VS_Snippets_Remoting/Net_Listener_Basic/VB/test.vb#1)]
474482
475483
]]></format>
476484
</remarks>

0 commit comments

Comments
 (0)