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 
Sub 
SetState ( _
	
responseCode 
As 
Integer, _
	
responseText 
As 
String, _
	
remainingSipFragment 
As 
String _
)
C#
public 
void 
SetState(
	
int 
responseCode,
	
string 
responseText,
	
string 
remainingSipFragment
)
Visual C++
public:
void 
SetState(
	
int 
responseCode, 
	
String^ 
responseText, 
	
String^ 
remainingSipFragment
)
JavaScript
function 
setState(
responseCode, 
responseText, 
remainingSipFragment);

Parameters

responseCode
Type: Int32
The specific response code
responseText
Type: String
The response text. Can be null.
remainingSipFragment
Type: 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.

See Also