Esta documentación está archivada y no tiene mantenimiento.

CommunicationObject.OnBeginOpen (Método)

Inserts processing on a communication object after it transitions to the opening state due to the invocation of an asynchronous open operation.

Espacio de nombres: System.ServiceModel.Channels
Ensamblado: System.ServiceModel (en system.servicemodel.dll)

protected abstract IAsyncResult OnBeginOpen (
	TimeSpan timeout,
	AsyncCallback callback,
	Object state
)
protected abstract IAsyncResult OnBeginOpen (
	TimeSpan timeout, 
	AsyncCallback callback, 
	Object state
)
protected abstract function OnBeginOpen (
	timeout : TimeSpan, 
	callback : AsyncCallback, 
	state : Object
) : IAsyncResult
No aplicable.

Parámetros

timeout

The Timespan that specifies how long the on open operation has to complete before timing out.

callback

The AsyncCallback delegate that receives notification of the completion of the asynchronous on open operation.

state

An object, specified by the application, that contains state information associated with the asynchronous on open operation.

Valor devuelto

The IAsyncResult that references the asynchronous on open operation.

Tipo de excepciónCondición

ArgumentOutOfRangeException

timeout is less than zero.

ArgumentOutOfRangeException

timeout is less than zero.

The OnBeginOpen method calls OnBeginOpen if the communication object is initially in the Created state.

To insert processing after a communication object transitions to a opening state due to the invocation of a synchronous Open operation, use the Open method.

Windows 98, Windows 2000 Service Pack 4, Windows CE, Windows Millennium, Windows Mobile para Pocket PC, Windows Mobile para Smartphone, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0
Mostrar: