SendMessageOptions.SetLocalIdentity Method
Sets the value of local identitiy URI for the message to be used in the From header.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub SetLocalIdentity ( _
uri As String, _
displayName As String _
)
'Usage
Dim instance As SendMessageOptions
Dim uri As String
Dim displayName As String
instance.SetLocalIdentity(uri, displayName)
public void SetLocalIdentity(
string uri,
string displayName
)
Parameters
- uri
Type: System.String
URI representing the local identity.
- displayName
Type: System.String
DisplayName for local Identity. Can be null.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when the string passed for the uri parameter is not a valid URI string. |
ArgumentException | Thrown when an empty string is passed for uri, but displayName is non-empty. |