IOutputChannel.Send Method (Message)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Transmits a message to the destination of the output channel.

Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in System.ServiceModel.dll)

Syntax

Sub Send ( _
    message As Message _
)
void Send(
    Message message
)

Parameters

Remarks

The destination for messages sent on an output channel is specified at channel creation time.

The Send(Message) method does not guarantee the delivery of message to the remote endpoint. An implementation of IOutputChannel can silently drop messages for a variety of reasons. There may be no more buffer room, for example. If delivery guarantees are required, use IOutputSessionChannel.

Passing the message into the output channel causes the message to be accessed. After you call Send(Message), you can no longer inspect the message or call Close on the message.

Examples

The following code shows how to implement this method.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

IOutputChannel Interface

Send Overload

System.ServiceModel.Channels Namespace