Skip to content

Commit 604f109

Browse files
Copilotgewarren
andcommitted
Convert snippet references from old [!code-lang[...]] syntax to new :::code syntax
Co-authored-by: gewarren <[email protected]>
1 parent 6524f1d commit 604f109

File tree

170 files changed

+1808
-1808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+1808
-1808
lines changed

xml/System.Net.Security/NegotiateStream.xml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@
7777
7878
The following example demonstrates the client side of a client-server connection that uses the <xref:System.Net.Security.NegotiateStream>. The client authenticates and sends a message to the server asynchronously.
7979
80-
[!code-csharp[NclNegoAsyncClient#0](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#0)]
81-
[!code-vb[NclNegoAsyncClient#0](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#0)]
80+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet0":::
81+
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet0":::
8282
8383
The following code example demonstrates the server side of a client-server connection that uses the <xref:System.Net.Security.NegotiateStream> to authenticate the client and read a message sent by the client.
8484
85-
[!code-csharp[NclNegoAsyncServer#0](~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs#0)]
85+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs" id="Snippet0":::
8686
8787
]]></format>
8888
</remarks>
@@ -157,7 +157,7 @@ The following code example demonstrates the server side of a client-server conne
157157
158158
The following code example demonstrates calling this constructor.
159159
160-
[!code-csharp[NclNegoSyncClient#3](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#3)]
160+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet3":::
161161
162162
]]></format>
163163
</remarks>
@@ -214,8 +214,8 @@ The following code example demonstrates the server side of a client-server conne
214214
215215
The following example demonstrates calling this constructor. This code example is part of a larger example provided for the <xref:System.Net.Security.NegotiateStream> class.
216216
217-
[!code-csharp[NclNegoAsyncClient#1](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#1)]
218-
[!code-vb[NclNegoAsyncClient#1](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#1)]
217+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet1":::
218+
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet1":::
219219
220220
]]></format>
221221
</remarks>
@@ -1699,8 +1699,8 @@ The following example demonstrates calling this constructor. This code example i
16991699
17001700
The following example demonstrates calling this method to begin an asynchronous authentication for the client.
17011701
1702-
[!code-csharp[NclNegoAsyncClient#2](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#2)]
1703-
[!code-vb[NclNegoAsyncClient#2](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#2)]
1702+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet2":::
1703+
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet2":::
17041704
17051705
]]></format>
17061706
</remarks>
@@ -2573,7 +2573,7 @@ The following example demonstrates calling this method to begin an asynchronous
25732573
25742574
The following code example demonstrates starting an asynchronous read operation. This code example is part of a larger example provided for the <xref:System.Net.Security.NegotiateStream> class.
25752575
2576-
[!code-csharp[NclNegoAsyncServer#1](~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs#1)]
2576+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs" id="Snippet1":::
25772577
25782578
]]></format>
25792579
</remarks>
@@ -2681,13 +2681,13 @@ The following example demonstrates calling this method to begin an asynchronous
26812681
26822682
The following example demonstrates beginning an asynchronous write operation.
26832683
2684-
[!code-csharp[NclNegoAsyncClient#3](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#3)]
2685-
[!code-vb[NclNegoAsyncClient#3](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#3)]
2684+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet3":::
2685+
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet3":::
26862686
26872687
The following method is called when the operation completes.
26882688
2689-
[!code-csharp[NclNegoAsyncClient#4](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#4)]
2690-
[!code-vb[NclNegoAsyncClient#4](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#4)]
2689+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet4":::
2690+
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet4":::
26912691
26922692
]]></format>
26932693
</remarks>
@@ -2762,7 +2762,7 @@ The following method is called when the operation completes.
27622762
27632763
The following code example demonstrates displaying the value of this property.
27642764
2765-
[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
2765+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::
27662766
27672767
]]></format>
27682768
</remarks>
@@ -2816,7 +2816,7 @@ The following code example demonstrates displaying the value of this property.
28162816
28172817
The following code example demonstrates displaying the value of this property.
28182818
2819-
[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
2819+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::
28202820
28212821
]]></format>
28222822
</remarks>
@@ -2874,7 +2874,7 @@ The following code example demonstrates displaying the value of this property.
28742874
28752875
The following code example demonstrates displaying the value of this property.
28762876
2877-
[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
2877+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::
28782878
28792879
]]></format>
28802880
</remarks>
@@ -2931,7 +2931,7 @@ The following code example demonstrates displaying the value of this property.
29312931
29322932
The following code example demonstrates displaying the value of this property.
29332933
2934-
[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
2934+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::
29352935
29362936
]]></format>
29372937
</remarks>
@@ -3219,7 +3219,7 @@ The following code example demonstrates displaying the value of this property.
32193219
32203220
The following code example demonstrates ending an asynchronous read operation. For an example that demonstrates starting the operation, see <xref:System.Net.Security.NegotiateStream.BeginRead%2A>.
32213221
3222-
[!code-csharp[NclNegoAsyncServer#3](~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs#3)]
3222+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs" id="Snippet3":::
32233223
32243224
]]></format>
32253225
</remarks>
@@ -3288,8 +3288,8 @@ Authentication has not occurred.</exception>
32883288
32893289
The following example demonstrates a method that is called to complete the asynchronous write operation. For an example that demonstrates starting the operation, see <xref:System.Net.Security.NegotiateStream.BeginWrite%2A>.
32903290
3291-
[!code-csharp[NclNegoAsyncClient#4](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#4)]
3292-
[!code-vb[NclNegoAsyncClient#4](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#4)]
3291+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet4":::
3292+
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet4":::
32933293
32943294
]]></format>
32953295
</remarks>
@@ -3352,7 +3352,7 @@ Authentication has not occurred.</exception>
33523352
33533353
The following code example demonstrates flushing the stream.
33543354
3355-
[!code-csharp[NclNegoSyncClient#4](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#4)]
3355+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet4":::
33563356
33573357
]]></format>
33583358
</remarks>
@@ -3453,7 +3453,7 @@ The following code example demonstrates flushing the stream.
34533453
34543454
The following code example demonstrates displaying the value of this property.
34553455
3456-
[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
3456+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::
34573457
34583458
]]></format>
34593459
</remarks>
@@ -3509,7 +3509,7 @@ The following code example demonstrates displaying the value of this property.
35093509
35103510
The following code example demonstrates displaying the value of this property.
35113511
3512-
[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
3512+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::
35133513
35143514
]]></format>
35153515
</remarks>
@@ -3564,7 +3564,7 @@ The following code example demonstrates displaying the value of this property.
35643564
35653565
The following code example demonstrates displaying the value of this property.
35663566
3567-
[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
3567+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::
35683568
35693569
]]></format>
35703570
</remarks>
@@ -3622,7 +3622,7 @@ The following code example demonstrates displaying the value of this property.
36223622
36233623
The following code example demonstrates displaying the value of this property.
36243624
3625-
[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
3625+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::
36263626
36273627
]]></format>
36283628
</remarks>
@@ -3679,7 +3679,7 @@ The following code example demonstrates displaying the value of this property.
36793679
36803680
The following code example demonstrates displaying the value of this property.
36813681
3682-
[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
3682+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::
36833683
36843684
]]></format>
36853685
</remarks>
@@ -3734,7 +3734,7 @@ The following code example demonstrates displaying the value of this property.
37343734
37353735
The following code example demonstrates displaying the value of this property.
37363736
3737-
[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
3737+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::
37383738
37393739
]]></format>
37403740
</remarks>
@@ -3790,7 +3790,7 @@ The following code example demonstrates displaying the value of this property.
37903790
37913791
The following code example demonstrates displaying the value of this property.
37923792
3793-
[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
3793+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::
37943794
37953795
]]></format>
37963796
</remarks>
@@ -3910,7 +3910,7 @@ The following code example demonstrates displaying the value of this property.
39103910
39113911
The following code example demonstrates reading from a <xref:System.Net.Security.NegotiateStream>.
39123912
3913-
[!code-csharp[NclNegoSyncServer#1](~/snippets/csharp/System.Net.Security/NegotiateStream/Read/server.cs#1)]
3913+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Read/server.cs" id="Snippet1":::
39143914
39153915
]]></format>
39163916
</remarks>
@@ -4071,7 +4071,7 @@ This method reads asynchronously as much data as is available into `buffer` and
40714071
40724072
The following code example demonstrates displaying the value of this property.
40734073
4074-
[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
4074+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::
40754075
40764076
]]></format>
40774077
</remarks>
@@ -4125,7 +4125,7 @@ The following code example demonstrates displaying the value of this property.
41254125
41264126
The following code example demonstrates displaying the value of this property.
41274127
4128-
[!code-csharp[NclNegoAsyncServer#2](~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs#2)]
4128+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs" id="Snippet2":::
41294129
41304130
]]></format>
41314131
</remarks>
@@ -4292,7 +4292,7 @@ The following code example demonstrates displaying the value of this property.
42924292
42934293
The following code example demonstrates writing to a <xref:System.Net.Security.NegotiateStream>.
42944294
4295-
[!code-csharp[NclNegoSyncClient#4](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#4)]
4295+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet4":::
42964296
42974297
]]></format>
42984298
</remarks>
@@ -4484,7 +4484,7 @@ The following code example demonstrates writing to a <xref:System.Net.Security.N
44844484
44854485
The following code example demonstrates displaying the value of this property.
44864486
4487-
[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
4487+
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::
44884488
44894489
]]></format>
44904490
</remarks>

0 commit comments

Comments
 (0)