ReferNotifier.SetState Method (Int32, String, String)
Synchronously 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 Sub SetState ( _
responseCode As Integer, _
responseText As String, _
remainingSipFragment As String _
)
'Usage
Dim instance As ReferNotifier
Dim responseCode As Integer
Dim responseText As String
Dim remainingSipFragment As String
instance.SetState(responseCode, responseText, _
remainingSipFragment)
public void SetState(
int responseCode,
string responseText,
string remainingSipFragment
)
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
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. |
Remarks
This method is not recommended for UI threads or scalable server applications.