System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / DefaultPropertiesToSend Class / TimeToBeReceived Property



In This Topic
    TimeToBeReceived Property (DefaultPropertiesToSend)
    In This Topic
    Gets or sets the time limit for the message to be retrieved from the destination queue.
    Syntax
    'Declaration
     
    
    Public Property TimeToBeReceived As TimeSpan
    'Usage
     
    
    Dim instance As DefaultPropertiesToSend
    Dim value As TimeSpan
     
    instance.TimeToBeReceived = value
     
    value = instance.TimeToBeReceived
    public TimeSpan TimeToBeReceived {get; set;}
    public:
    property TimeSpan TimeToBeReceived {
       TimeSpan get();
       void set (    TimeSpan value);
    }

    Property Value

    The total time, in seconds, for a sent message to be received from the destination queue. The default is Message.InfiniteTimeout.
    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