Edit

Share via


ReferNotifier.BeginSetState Method

Definition

Overloads

BeginSetState(ReferState, AsyncCallback, Object)

Sets the Refer state. This will result in sending Notification to the referrer.

BeginSetState(Int32, String, String, AsyncCallback, Object)

Sets the Refer state. This will result in sending Notification to the referrer.

BeginSetState(ReferState, AsyncCallback, Object)

Sets the Refer state. This will result in sending Notification to the referrer.

public:
 abstract IAsyncResult ^ BeginSetState(Microsoft::Rtc::Signaling::ReferState referState, AsyncCallback ^ userCallback, System::Object ^ state);
public abstract IAsyncResult BeginSetState (Microsoft.Rtc.Signaling.ReferState referState, AsyncCallback userCallback, object state);
abstract member BeginSetState : Microsoft.Rtc.Signaling.ReferState * AsyncCallback * obj -> IAsyncResult

Parameters

referState
ReferState

The refer State value to set

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 session is not in a valid session state to set the refer state.

Applies to

BeginSetState(Int32, String, String, AsyncCallback, Object)

Sets the Refer state. This will result in sending Notification to the referrer.

public:
 abstract IAsyncResult ^ BeginSetState(int responseCode, System::String ^ responseText, System::String ^ remainingSipFragment, AsyncCallback ^ userCallback, System::Object ^ state);
public abstract IAsyncResult BeginSetState (int responseCode, string responseText, string remainingSipFragment, AsyncCallback userCallback, object state);
abstract member BeginSetState : int * string * string * AsyncCallback * obj -> IAsyncResult
Public MustOverride Function BeginSetState (responseCode As Integer, responseText As String, remainingSipFragment As String, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

responseCode
Int32

The specific response code

responseText
String

The response text. Can be null.

remainingSipFragment
String

The remaining SIP fragment

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 endpoint is already terminated or when the refer state transition is not allowed

Thrown when the response code is out of range.

Applies to