|
77 | 77 |
|
78 | 78 | 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.
|
79 | 79 |
|
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"::: |
82 | 82 |
|
83 | 83 | 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.
|
84 | 84 |
|
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"::: |
86 | 86 |
|
87 | 87 | ]]></format>
|
88 | 88 | </remarks>
|
@@ -157,7 +157,7 @@ The following code example demonstrates the server side of a client-server conne
|
157 | 157 |
|
158 | 158 | The following code example demonstrates calling this constructor.
|
159 | 159 |
|
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"::: |
161 | 161 |
|
162 | 162 | ]]></format>
|
163 | 163 | </remarks>
|
@@ -214,8 +214,8 @@ The following code example demonstrates the server side of a client-server conne
|
214 | 214 |
|
215 | 215 | 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.
|
216 | 216 |
|
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"::: |
219 | 219 |
|
220 | 220 | ]]></format>
|
221 | 221 | </remarks>
|
@@ -1699,8 +1699,8 @@ The following example demonstrates calling this constructor. This code example i
|
1699 | 1699 |
|
1700 | 1700 | The following example demonstrates calling this method to begin an asynchronous authentication for the client.
|
1701 | 1701 |
|
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"::: |
1704 | 1704 |
|
1705 | 1705 | ]]></format>
|
1706 | 1706 | </remarks>
|
@@ -2573,7 +2573,7 @@ The following example demonstrates calling this method to begin an asynchronous
|
2573 | 2573 |
|
2574 | 2574 | 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.
|
2575 | 2575 |
|
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"::: |
2577 | 2577 |
|
2578 | 2578 | ]]></format>
|
2579 | 2579 | </remarks>
|
@@ -2681,13 +2681,13 @@ The following example demonstrates calling this method to begin an asynchronous
|
2681 | 2681 |
|
2682 | 2682 | The following example demonstrates beginning an asynchronous write operation.
|
2683 | 2683 |
|
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"::: |
2686 | 2686 |
|
2687 | 2687 | The following method is called when the operation completes.
|
2688 | 2688 |
|
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"::: |
2691 | 2691 |
|
2692 | 2692 | ]]></format>
|
2693 | 2693 | </remarks>
|
@@ -2762,7 +2762,7 @@ The following method is called when the operation completes.
|
2762 | 2762 |
|
2763 | 2763 | The following code example demonstrates displaying the value of this property.
|
2764 | 2764 |
|
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"::: |
2766 | 2766 |
|
2767 | 2767 | ]]></format>
|
2768 | 2768 | </remarks>
|
@@ -2816,7 +2816,7 @@ The following code example demonstrates displaying the value of this property.
|
2816 | 2816 |
|
2817 | 2817 | The following code example demonstrates displaying the value of this property.
|
2818 | 2818 |
|
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"::: |
2820 | 2820 |
|
2821 | 2821 | ]]></format>
|
2822 | 2822 | </remarks>
|
@@ -2874,7 +2874,7 @@ The following code example demonstrates displaying the value of this property.
|
2874 | 2874 |
|
2875 | 2875 | The following code example demonstrates displaying the value of this property.
|
2876 | 2876 |
|
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"::: |
2878 | 2878 |
|
2879 | 2879 | ]]></format>
|
2880 | 2880 | </remarks>
|
@@ -2931,7 +2931,7 @@ The following code example demonstrates displaying the value of this property.
|
2931 | 2931 |
|
2932 | 2932 | The following code example demonstrates displaying the value of this property.
|
2933 | 2933 |
|
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"::: |
2935 | 2935 |
|
2936 | 2936 | ]]></format>
|
2937 | 2937 | </remarks>
|
@@ -3219,7 +3219,7 @@ The following code example demonstrates displaying the value of this property.
|
3219 | 3219 |
|
3220 | 3220 | 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>.
|
3221 | 3221 |
|
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"::: |
3223 | 3223 |
|
3224 | 3224 | ]]></format>
|
3225 | 3225 | </remarks>
|
@@ -3288,8 +3288,8 @@ Authentication has not occurred.</exception>
|
3288 | 3288 |
|
3289 | 3289 | 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>.
|
3290 | 3290 |
|
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"::: |
3293 | 3293 |
|
3294 | 3294 | ]]></format>
|
3295 | 3295 | </remarks>
|
@@ -3352,7 +3352,7 @@ Authentication has not occurred.</exception>
|
3352 | 3352 |
|
3353 | 3353 | The following code example demonstrates flushing the stream.
|
3354 | 3354 |
|
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"::: |
3356 | 3356 |
|
3357 | 3357 | ]]></format>
|
3358 | 3358 | </remarks>
|
@@ -3453,7 +3453,7 @@ The following code example demonstrates flushing the stream.
|
3453 | 3453 |
|
3454 | 3454 | The following code example demonstrates displaying the value of this property.
|
3455 | 3455 |
|
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"::: |
3457 | 3457 |
|
3458 | 3458 | ]]></format>
|
3459 | 3459 | </remarks>
|
@@ -3509,7 +3509,7 @@ The following code example demonstrates displaying the value of this property.
|
3509 | 3509 |
|
3510 | 3510 | The following code example demonstrates displaying the value of this property.
|
3511 | 3511 |
|
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"::: |
3513 | 3513 |
|
3514 | 3514 | ]]></format>
|
3515 | 3515 | </remarks>
|
@@ -3564,7 +3564,7 @@ The following code example demonstrates displaying the value of this property.
|
3564 | 3564 |
|
3565 | 3565 | The following code example demonstrates displaying the value of this property.
|
3566 | 3566 |
|
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"::: |
3568 | 3568 |
|
3569 | 3569 | ]]></format>
|
3570 | 3570 | </remarks>
|
@@ -3622,7 +3622,7 @@ The following code example demonstrates displaying the value of this property.
|
3622 | 3622 |
|
3623 | 3623 | The following code example demonstrates displaying the value of this property.
|
3624 | 3624 |
|
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"::: |
3626 | 3626 |
|
3627 | 3627 | ]]></format>
|
3628 | 3628 | </remarks>
|
@@ -3679,7 +3679,7 @@ The following code example demonstrates displaying the value of this property.
|
3679 | 3679 |
|
3680 | 3680 | The following code example demonstrates displaying the value of this property.
|
3681 | 3681 |
|
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"::: |
3683 | 3683 |
|
3684 | 3684 | ]]></format>
|
3685 | 3685 | </remarks>
|
@@ -3734,7 +3734,7 @@ The following code example demonstrates displaying the value of this property.
|
3734 | 3734 |
|
3735 | 3735 | The following code example demonstrates displaying the value of this property.
|
3736 | 3736 |
|
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"::: |
3738 | 3738 |
|
3739 | 3739 | ]]></format>
|
3740 | 3740 | </remarks>
|
@@ -3790,7 +3790,7 @@ The following code example demonstrates displaying the value of this property.
|
3790 | 3790 |
|
3791 | 3791 | The following code example demonstrates displaying the value of this property.
|
3792 | 3792 |
|
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"::: |
3794 | 3794 |
|
3795 | 3795 | ]]></format>
|
3796 | 3796 | </remarks>
|
@@ -3910,7 +3910,7 @@ The following code example demonstrates displaying the value of this property.
|
3910 | 3910 |
|
3911 | 3911 | The following code example demonstrates reading from a <xref:System.Net.Security.NegotiateStream>.
|
3912 | 3912 |
|
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"::: |
3914 | 3914 |
|
3915 | 3915 | ]]></format>
|
3916 | 3916 | </remarks>
|
@@ -4071,7 +4071,7 @@ This method reads asynchronously as much data as is available into `buffer` and
|
4071 | 4071 |
|
4072 | 4072 | The following code example demonstrates displaying the value of this property.
|
4073 | 4073 |
|
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"::: |
4075 | 4075 |
|
4076 | 4076 | ]]></format>
|
4077 | 4077 | </remarks>
|
@@ -4125,7 +4125,7 @@ The following code example demonstrates displaying the value of this property.
|
4125 | 4125 |
|
4126 | 4126 | The following code example demonstrates displaying the value of this property.
|
4127 | 4127 |
|
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"::: |
4129 | 4129 |
|
4130 | 4130 | ]]></format>
|
4131 | 4131 | </remarks>
|
@@ -4292,7 +4292,7 @@ The following code example demonstrates displaying the value of this property.
|
4292 | 4292 |
|
4293 | 4293 | The following code example demonstrates writing to a <xref:System.Net.Security.NegotiateStream>.
|
4294 | 4294 |
|
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"::: |
4296 | 4296 |
|
4297 | 4297 | ]]></format>
|
4298 | 4298 | </remarks>
|
@@ -4484,7 +4484,7 @@ The following code example demonstrates writing to a <xref:System.Net.Security.N
|
4484 | 4484 |
|
4485 | 4485 | The following code example demonstrates displaying the value of this property.
|
4486 | 4486 |
|
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"::: |
4488 | 4488 |
|
4489 | 4489 | ]]></format>
|
4490 | 4490 | </remarks>
|
|
0 commit comments