Send Method (Message, TimeSpan)
Collapse the table of content
Expand the table of content

IOutputChannel.Send Method (Message, TimeSpan)

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

Sends a message on the current output channel within a specified interval of time.

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

'Declaration
Sub Send ( _
	message As Message, _
	timeout As TimeSpan _
)

Parameters

message
Type: System.ServiceModel.Channels.Message
The Message being sent on the output channel.
timeout
Type: System.TimeSpan
The TimeSpan that specifies how long the send operation has to complete before timing out.

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

The Send(Message, TimeSpan) 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, TimeSpan), you can no longer inspect the message or call Close on the message.

Notes to Implementers

The operation should throw a TimeoutException if the specified timeout is exceeded.

The following code shows how to implement this method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft