StreamUpgradeInitiator.BeginInitiateUpgrade Method (Stream, AsyncCallback, Object)

 

This abstract method can be implemented to do asynchronous processing that initiates an upgrade.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public abstract IAsyncResult BeginInitiateUpgrade(
	Stream stream,
	AsyncCallback callback,
	object state
)

Parameters

stream
Type: System.IO.Stream

The stream to be upgraded.

callback
Type: System.AsyncCallback

The method to call when the InitiateUpgrade has completed.

state
Type: System.Object

State information about the status of the asynchronous call.

Return Value

Type: System.IAsyncResult

Returns an IAsyncResult to be passed into the EndInitiateUpgrade method.

This method calls InitiateUpgrade and returns.

.NET Framework
Available since 3.0
Return to top
Show: