NamedPipeClientStream::ConnectAsync Method (CancellationToken)

.NET Framework (current version)
 

Asynchronously connects to a waiting server and monitors cancellation requests.

Namespace:   System.IO.Pipes
Assembly:  System.Core (in System.Core.dll)

public:
Task^ ConnectAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.Threading::CancellationToken

The token to monitor for cancellation requests. The default value is None.

Return Value

Type: System.Threading.Tasks::Task^

A task that represents the asynchronous connect operation.

.NET Framework
Available since 4.6
Return to top
Show: