MapiPropertyTag Struct
The tag of a MAPI property: a 16-bit identifier and a 16-bit type.
public readonly struct MapiPropertyTag : IEquatable<MapiPropertyTag>- Implements
Constructors
| Name | Description |
|---|---|
| MapiPropertyTag(ushort, MapiPropertyType) | Initializes a new instance of the MapiPropertyTag struct. |
MapiPropertyTag(ushort, MapiPropertyType)
MapiPropertyTag.csInitializes a new instance of the MapiPropertyTag struct.
public MapiPropertyTag(ushort id, MapiPropertyType type)Parameters
idushort- The identifier of the property. Identifiers from 0x8000 are named properties, mapped by each file.
typeMapiPropertyType- The type of the property.
Properties
| Name | Description |
|---|---|
| Id | Gets the identifier of the property. |
| IsNamed | Gets whether the identifier is in the range of the named properties (0x8000 and above). |
| Type | Gets the type of the property. |
| Value | Gets the tag as a 32-bit value: the identifier in the high 16 bits and the type in the low 16 bits. |
IsNamed
MapiPropertyTag.csValue
MapiPropertyTag.csMethods
| Name | Description |
|---|---|
| Equals(MapiPropertyTag) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| FromValue(uint) | Creates a tag from its 32-bit value. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the tag as an hexadecimal value, such as 0x0037001F. |
Equals overloads
Equals(MapiPropertyTag)
MapiPropertyTag.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(MapiPropertyTag other)Parameters
otherMapiPropertyTag- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
MapiPropertyTag.csFromValue(uint)
MapiPropertyTag.csCreates a tag from its 32-bit value.
public static MapiPropertyTag FromValue(uint value)Parameters
valueuint- The identifier in the high 16 bits and the type in the low 16 bits.
Returns
MapiPropertyTag The tag.
GetHashCode()
MapiPropertyTag.csToString()
MapiPropertyTag.csOperators
| Name | Description |
|---|---|
| operator ==(MapiPropertyTag, MapiPropertyTag) | Compares two tags. |
| operator !=(MapiPropertyTag, MapiPropertyTag) | Compares two tags. |
operator ==(MapiPropertyTag, MapiPropertyTag)
MapiPropertyTag.csCompares two tags.
public static bool operator ==(MapiPropertyTag left, MapiPropertyTag right)Parameters
leftMapiPropertyTag- The first tag.
rightMapiPropertyTag- The second tag.
Returns
bool true when the tags are equal.
operator !=(MapiPropertyTag, MapiPropertyTag)
MapiPropertyTag.csCompares two tags.
public static bool operator !=(MapiPropertyTag left, MapiPropertyTag right)Parameters
leftMapiPropertyTag- The first tag.
rightMapiPropertyTag- The second tag.
Returns
bool true when the tags are different.