Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions xml/System.Net.Security/NegotiateStream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@

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.

[!code-csharp[NclNegoAsyncClient#0](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#0)]
[!code-vb[NclNegoAsyncClient#0](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#0)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet0":::
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet0":::

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.

[!code-csharp[NclNegoAsyncServer#0](~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs#0)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs" id="Snippet0":::

]]></format>
</remarks>
Expand Down Expand Up @@ -157,7 +157,7 @@ The following code example demonstrates the server side of a client-server conne

The following code example demonstrates calling this constructor.

[!code-csharp[NclNegoSyncClient#3](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#3)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet3":::

]]></format>
</remarks>
Expand Down Expand Up @@ -214,8 +214,8 @@ The following code example demonstrates the server side of a client-server conne

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.

[!code-csharp[NclNegoAsyncClient#1](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#1)]
[!code-vb[NclNegoAsyncClient#1](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -1699,8 +1699,8 @@ The following example demonstrates calling this constructor. This code example i

The following example demonstrates calling this method to begin an asynchronous authentication for the client.

[!code-csharp[NclNegoAsyncClient#2](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#2)]
[!code-vb[NclNegoAsyncClient#2](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet2":::

]]></format>
</remarks>
Expand Down Expand Up @@ -2573,7 +2573,7 @@ The following example demonstrates calling this method to begin an asynchronous

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.

[!code-csharp[NclNegoAsyncServer#1](~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -2681,13 +2681,13 @@ The following example demonstrates calling this method to begin an asynchronous

The following example demonstrates beginning an asynchronous write operation.

[!code-csharp[NclNegoAsyncClient#3](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#3)]
[!code-vb[NclNegoAsyncClient#3](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#3)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet3":::

The following method is called when the operation completes.

[!code-csharp[NclNegoAsyncClient#4](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#4)]
[!code-vb[NclNegoAsyncClient#4](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#4)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet4":::

]]></format>
</remarks>
Expand Down Expand Up @@ -2762,7 +2762,7 @@ The following method is called when the operation completes.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::

]]></format>
</remarks>
Expand Down Expand Up @@ -2816,7 +2816,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::

]]></format>
</remarks>
Expand Down Expand Up @@ -2874,7 +2874,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::

]]></format>
</remarks>
Expand Down Expand Up @@ -2931,7 +2931,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3219,7 +3219,7 @@ The following code example demonstrates displaying the value of this property.

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>.

[!code-csharp[NclNegoAsyncServer#3](~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs#3)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs" id="Snippet3":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3288,8 +3288,8 @@ Authentication has not occurred.</exception>

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>.

[!code-csharp[NclNegoAsyncClient#4](~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs#4)]
[!code-vb[NclNegoAsyncClient#4](~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb#4)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/AuthenticatedStream/Overview/client.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/System.Net.Security/AuthenticatedStream/Overview/client.vb" id="Snippet4":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3352,7 +3352,7 @@ Authentication has not occurred.</exception>

The following code example demonstrates flushing the stream.

[!code-csharp[NclNegoSyncClient#4](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#4)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet4":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3453,7 +3453,7 @@ The following code example demonstrates flushing the stream.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3509,7 +3509,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3564,7 +3564,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3622,7 +3622,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3679,7 +3679,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3734,7 +3734,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#1](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3790,7 +3790,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::

]]></format>
</remarks>
Expand Down Expand Up @@ -3910,7 +3910,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates reading from a <xref:System.Net.Security.NegotiateStream>.

[!code-csharp[NclNegoSyncServer#1](~/snippets/csharp/System.Net.Security/NegotiateStream/Read/server.cs#1)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Read/server.cs" id="Snippet1":::

]]></format>
</remarks>
Expand Down Expand Up @@ -4071,7 +4071,7 @@ This method reads asynchronously as much data as is available into `buffer` and

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::

]]></format>
</remarks>
Expand Down Expand Up @@ -4125,7 +4125,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoAsyncServer#2](~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/Overview/server.cs" id="Snippet2":::

]]></format>
</remarks>
Expand Down Expand Up @@ -4292,7 +4292,7 @@ The following code example demonstrates displaying the value of this property.

The following code example demonstrates writing to a <xref:System.Net.Security.NegotiateStream>.

[!code-csharp[NclNegoSyncClient#4](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#4)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet4":::

]]></format>
</remarks>
Expand Down Expand Up @@ -4484,7 +4484,7 @@ The following code example demonstrates writing to a <xref:System.Net.Security.N

The following code example demonstrates displaying the value of this property.

[!code-csharp[NclNegoSyncClient#2](~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs#2)]
:::code language="csharp" source="~/snippets/csharp/System.Net.Security/NegotiateStream/.ctor/client.cs" id="Snippet2":::

]]></format>
</remarks>
Expand Down
Loading
Loading