ReferNotifier.BeginSetState Method (Int32, String, String, AsyncCallback, Object)
Sets the Refer state. This will result in sending Notification to the referrer.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public MustOverride Function BeginSetState ( _
responseCode As Integer, _
responseText As String, _
remainingSipFragment As String, _
userCallback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim instance As ReferNotifier
Dim responseCode As Integer
Dim responseText As String
Dim remainingSipFragment As String
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginSetState(responseCode, _
responseText, remainingSipFragment, _
userCallback, state)
public abstract IAsyncResult BeginSetState(
int responseCode,
string responseText,
string remainingSipFragment,
AsyncCallback userCallback,
Object state
)
Parameters
- responseCode
Type: System.Int32
The specific response code
- responseText
Type: System.String
The response text. Can be null.
- remainingSipFragment
Type: System.String
The remaining SIP fragment
- userCallback
Type: System.AsyncCallback
The method to be called when the asynchronous operation is completed.
- state
Type: System.Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.
Return Value
Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when the endpoint is already terminated or when the refer state transition is not allowed |
ArgumentOutOfRangeException | Thrown when the response code is out of range. |