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
Visual Basic (Declaration) |
Public
MustOverride
Function
BeginSetState ( _
responseCode
As
Integer, _
responseText
As
String, _
remainingSipFragment
As
String, _
userCallback
As
AsyncCallback, _
state
As
Object _
)
As
IAsyncResult
|
C# |
public
abstract
IAsyncResult
BeginSetState(
int
responseCode,
string
responseText,
string
remainingSipFragment,
AsyncCallback
userCallback,
Object
state
)
|
Visual C++ |
public:
virtual
IAsyncResult^
BeginSetState(
int
responseCode,
String^
responseText,
String^
remainingSipFragment,
AsyncCallback^
userCallback,
Object^
state
)
abstract
|
JavaScript |
function
beginSetState(
responseCode,
responseText,
remainingSipFragment,
userCallback,
state);
|
Parameters
-
responseCode
- Type:
Int32
The specific response code
-
responseText
- Type:
String
The response text. Can be null.
-
remainingSipFragment
- Type:
String
The remaining SIP fragment
-
userCallback
- Type:
AsyncCallback
The method to be called when the asynchronous operation is
completed.
-
state
- Type:
Object
A user-provided object that distinguishes this particular
asynchronous operation from other asynchronous operations.
Return Value
An IAsyncResult that
references the asynchronous operation.
Return Value
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. |
See Also