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
<XmlAttributeAttribute> _
Public Property PropertyTag As String
[XmlAttributeAttribute] 
public string PropertyTag { get; set; }
[XmlAttributeAttribute] 
public:
property String^ PropertyTag {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_PropertyTag ()

/** @property */
public void set_PropertyTag (String value)
public function get PropertyTag () : String

public function set PropertyTag (value : String)

Property Value

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)