TimeToBeReceived Property (Message)
Gets or sets the maximum amount of time for the message to be received from the destination queue.
Syntax
'Declaration Public Property TimeToBeReceived As TimeSpan
'Usage Dim instance As Message Dim value As TimeSpan instance.TimeToBeReceived = value value = instance.TimeToBeReceived
public TimeSpan TimeToBeReceived {get; set;}
Property Value
The total time for a sent message to be received from the destination queue. The default is InfiniteTimeout.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message queue is filtered to ignore the TimeToBeReceived property. |
System.ArgumentException | The value specified for TimeToBeReceived is invalid. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also