System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / Message Class / TimeToReachQueue Property



In This Topic
    TimeToReachQueue Property (Message)
    In This Topic
    Gets or sets the maximum amount of time for the message to reach the queue.
    Syntax
    'Declaration
     
    
    Public Property TimeToReachQueue As TimeSpan
    'Usage
     
    
    Dim instance As Message
    Dim value As TimeSpan
     
    instance.TimeToReachQueue = value
     
    value = instance.TimeToReachQueue
    public TimeSpan TimeToReachQueue {get; set;}
    public:
    property TimeSpan TimeToReachQueue {
       TimeSpan get();
       void set (    TimeSpan value);
    }

    Property Value

    The time limit for the message to reach the destination queue, beginning from the time the message is sent. The default is InfiniteTimeout.
    Exceptions
    ExceptionDescription
    The message queue is filtered to ignore the TimeToReachQueue property.
    The value specified for TimeToReachQueue is invalid. It might represent a negative number.
    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