Assembly: Microsoft.Rtc.Collaboration (in microsoft.rtc.collaboration.dll)
Syntax
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException |
Thrown when a non-null is expected for an argument. The argument name for which a non-null is expected is part of the exception message. |
RealTimeException |
Thrown when the server or remote participant returns an error. The response code in the exception should give more information about the error or encompasses an SIP error or failure cases encountered during sending the message - SIP Transport error, SIP Authentication, and credential-related errors. |
ArgumentException |
Thrown when invalid arguments are passed. |
InvalidOperationException |
Thrown when the session is an invalid state to send message. |
FailureResponseException |
Thrown when the server or remote participant returns an error. The SipResponseData in the exception should give additional information. |
ServerPolicyException |
A server policy setting does not allow the sending of the message. |
Remarks
The session should be in the Connected state. This method is not recommended for a UI thread.