SignalingSession.BeginAccept Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| BeginAccept(AsyncCallback, Object) |
Accept the session. |
| BeginAccept(SignalingSessionAcceptOptions, AsyncCallback, Object) |
Accept the session with options specified. |
BeginAccept(AsyncCallback, Object)
Accept the session.
public:
IAsyncResult ^ BeginAccept(AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginAccept (AsyncCallback userCallback, object state);
member this.BeginAccept : AsyncCallback * obj -> IAsyncResult
Public Function BeginAccept (userCallback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- userCallback
- AsyncCallback
The method to be called when the asynchronous operation is completed.
- state
- Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.
Returns
An IAsyncResult that references the asynchronous operation.
Exceptions
Thrown when the state of the session does not allow the operation.
Applies to
BeginAccept(SignalingSessionAcceptOptions, AsyncCallback, Object)
Accept the session with options specified.
public:
IAsyncResult ^ BeginAccept(Microsoft::Rtc::Signaling::SignalingSessionAcceptOptions ^ options, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginAccept (Microsoft.Rtc.Signaling.SignalingSessionAcceptOptions options, AsyncCallback userCallback, object state);
member this.BeginAccept : Microsoft.Rtc.Signaling.SignalingSessionAcceptOptions * AsyncCallback * obj -> IAsyncResult
Public Function BeginAccept (options As SignalingSessionAcceptOptions, userCallback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- options
- SignalingSessionAcceptOptions
Optional parameters to customize the accept behavior.
- userCallback
- AsyncCallback
The method to be called when the asynchronous operation is completed.
- state
- Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.
Returns
An IAsyncResult that references the asynchronous operation.
Exceptions
Thrown when the state of the session does not allow the operation or the dialog context has been used in a previous transaction.
Thrown when the options parameter contains invalid or restricted signaling headers.