Session.BeginSetState Method

Begins a set state operation.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)

Syntax

'Declaration
Public Function BeginSetState ( _
    stream As Stream, _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As Session
Dim stream As Stream
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginSetState(stream, _
    timeout, callback, state)
public IAsyncResult BeginSetState(
    Stream stream,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
)
public:
IAsyncResult^ BeginSetState(
    Stream^ stream, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
)
member BeginSetState : 
        stream:Stream * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
public function BeginSetState(
    stream : Stream, 
    timeout : TimeSpan, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

Return Value

Type: System.IAsyncResult
.

See Also

Reference

Session Class

Microsoft.ServiceBus.Messaging Namespace