Sends a message to the specified participant.
Namespace:
Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in
microsoft.rtc.collaboration.dll)
Syntax
|
Public Function BeginSendMessage ( _
messageType As MessageType, _
contentType As ContentType, _
body As Byte(), _
signalingHeaders As IEnumerable(Of SignalingHeader), _
userCallback As AsyncCallback, _
state As Object _
) As IAsyncResult
|
|
public IAsyncResult BeginSendMessage (
MessageType messageType,
ContentType contentType,
byte[] body,
IEnumerable<SignalingHeader> signalingHeaders,
AsyncCallback userCallback,
Object state
)
|
Parameters
- messageType
-
The type of the body of the message
- contentType
-
The content type describing the body, which can be null
if the body is null.
- body
-
The body for the data, which can be null.
- signalingHeaders
-
Headers provided for this INVITE.
- userCallback
-
The method to be called when the SendMessage operation
has completed.
- state
-
The state to be passed back to the callback.
Return Value
An
IAsyncResult that references this operation.
Exceptions
Exception type |
Condition |
ServerPolicyException
|
Thrown when a server policy setting does not allow the
sending of the message.
|
ArgumentException
|
Thrown when a body is specified without a content type
with media type. MessageType is not Message or Info.
|
InvalidOperationException
|
Thrown when called in an invalid state.
|
Remarks
Thread Safety
All public static (Shared in Visual
Basic) members of this type are thread-safe. Instance members are
not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server
2003, Windows Vista Ultimate Edition, Windows Vista Business
Edition, Windows Vista Enterprise Edition
Target Platforms
See Also