This documentation is archived and is not being maintained.

RealTimeEndpoint.BeginSendMessage Method (MessageType, RealTimeAddress, ContentType, Byte[], AsyncCallback, Object)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Sends a message to another endpoint.

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

public IAsyncResult BeginSendMessage (
	MessageType messageType,
	RealTimeAddress sessionTarget,
	ContentType contentType,
	byte[] body,
	AsyncCallback userCallback,
	Object state



The message type.


The target to send the message.


The content type describing the body. If null text/plain, UTF-8 is assumed.


The body for the data.


The method to be called when the async operation is completed.


A user-provided object that distinguishes this particular asynchronous operation from others.

Return Value

Returns an IAsyncResult that references this operation.

Exception typeCondition

Thrown when arguments are null.


Thrown when a server policy setting does not allow sending the message.

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

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