Creates a new instance of RealTimeAddress.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
uri 
As 
String, _
	
endpointId 
As 
String _
)
C#
public 
RealTimeAddress(
	
string 
uri,
	
string 
endpointId
)
Visual C++
public:
RealTimeAddress(
	
String^ 
uri, 
	
String^ 
endpointId
)
JavaScript

Microsoft.Rtc.Signaling.RealTimeAddress = 
function(
uri, 
endpointId);

Parameters

uri
Type: String
The URI of the identity.
endpointId
Type: String
A string that uniquely identifies the endpoint.

Remarks

If the URI represents a GRUU, the endpoint ID is not needed but can be included with no harm. The URI can be sip URI or tel URI. For a tel URI the endpoint ID should be passed as null.

Exceptions

Exception Condition
ArgumentException Thrown when uriis null, empty, or not formed correctly.

See Also