2.2.6.1.4 PropertyValue Structure

The PropertyValue structure specifies the value of a property in a ContentRestriction structure, as specified in section 2.2.6.1.2.4, a PropertyRestriction structure, as specified in section 2.2.6.1.2.5, or a CommentRestriction structure, as specified in section 2.2.6.1.2.11.


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

Data

...

Buffer (variable)

...

Data (8 bytes):  The format of this field depends on the property type that is specified in the ContentRestriction, PropertyRestriction, or CommentRestriction structures. The value of this field is read from the beginning of the field. In cases where the size of the data is less than the size of the Data field, the remaining bytes MUST be ignored. The following table lists the size and format of the value by property type.

Property type

Value size

Value format

PtypInteger16

2 bytes

Signed integer

PtypInteger32

4 bytes

Signed integer

PtypFloating32

4 bytes

Floating point number

PtypFloating64

8 bytes

Floating point number

PtypCurrency

8 bytes

Signed integer

PtypFloatingTime

8 bytes

Floating point number

PtypErrorCode

4 bytes

SCODE error code

PtypBoolean

2 bytes

WORD

PtypInteger64

8 bytes

Signed integer

PtypString

0 bytes

The string value MUST be stored separately in the PidTagViewDescriptorStrings property, as specified in section 2.2.6.3. The value of the Data field MUST be ignored.

PtypTime

8 bytes

Unsigned integer

PtypGuid

0 bytes

The value of the Data field MUST be ignored.

PtypBinary

4 bytes

Unsigned integer

Buffer (variable):  This field MUST exist only when the property type is PtypBinary. The Buffer field contains an arbitrary binary stream. The size, in bytes, of the stream is specified in the Data field.