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



In This Topic
    IsFirstInTransaction Property (Message)
    In This Topic
    Gets a value that indicates whether the message was the first message sent in a transaction.
    Syntax
    'Declaration
     
    
    Public ReadOnly Property IsFirstInTransaction As Boolean
    'Usage
     
    
    Dim instance As Message
    Dim value As Boolean
     
    value = instance.IsFirstInTransaction
    public bool IsFirstInTransaction {get;}
    public:
    property bool IsFirstInTransaction {
       bool get();
    }

    Property Value

    true if the message was the first message sent in a transaction; otherwise, false.
    Exceptions
    ExceptionDescription
    The message has not been sent. This property can only be read on messages retrieved from a queue.-or- The message queue is filtered to ignore the IsFirstInTransaction property.
    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