Partager via


PathToExtendedFieldType.PropertyTag Property

The PropertyTag property gets or sets the property tag without the type part of the tag.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

Syntax

'Declaration
Public Property PropertyTag As String
    Get
    Set
'Usage
Dim instance As PathToExtendedFieldType
Dim value As String

value = instance.PropertyTag

instance.PropertyTag = value
public string PropertyTag { get; set; }

Property Value

Type: System.String
The PropertyTag property returns a string representation of a property tag without the type part of the tag.

Remarks

The PropertyTag property can be represented as either a hexadecimal or a short integer.

The range between 0x8000 and 0xFFFE represents the custom range of properties. When a mailbox database encounters a custom property for the first time, it assigns that custom property a property tag within the custom property range of 0x8000-0xFFFE. A given custom property tag will most likely differ across databases. Therefore, a custom property request by property tag can return different properties on different databases. The use of the PropertyTag property is prohibited for custom properties. Instead, use the PropertySetId property and the PropertyName or PropertyId property.

Important

Access any custom property between 0x8000 and 0xFFFE by using the GUID + name/ID.

If the PropertyTag property is used, the DistinguishedPropertySetId, PropertySetId, PropertyName, and PropertyId properties cannot be used.

Note

You cannot use a property tag for properties within the custom range 0x8000-0xFFFE. You must use a named property in this case.