共用方式為


2.2.2.1.1 TransactionContextPropertyHeader

The TransactionContextPropertyHeader structure is the common header for all variants of the Transaction Context Property.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

MaxVersion

MinVersion

Variant

StreamID (16 bytes)

...

...

...

StreamVariant

MaxVersion (2 bytes): The major version of this marshaled format. MUST be set to 0x0001 or 0x0002. A value of 0x0002 indicates that an IsolationLevel field is present at the end of the message (see sections 2.2.2.1.2 and 2.2.2.1.3); a value of 0x0001 indicates that no IsolationLevel is present.

MinVersion (2 bytes): The minor version of this marshaled format. MUST be set to 0x0001.

Variant (2 bytes): This MUST be set to either 0x0000 or 0x0002, and MUST be ignored by the server on receipt.

StreamID (16 bytes): A GUID identifying the controlling transaction stream.

StreamVariant (2 bytes): A value identifying the larger structure that contains the TransactionContextPropertyHeader. It MUST be set to one of the following values:

Value

Meaning

StreamVariant

0x0001

The TransactionContextPropertyHeader structure MUST be contained as part of a TransactionStream (section 2.2.2.1.2) structure.

TransactionVariant

0x0002

The TransactionContextPropertyHeader structure MUST be contained as part of a TransactionBuffer (section 2.2.2.1.3) structure.