MapiNamedProperty Class
The name of a named property: a property set and either a numeric identifier (LID) or a string.
public sealed class MapiNamedProperty : IEquatable<MapiNamedProperty>- Implements
Constructors
| Name | Description |
|---|---|
| MapiNamedProperty(Guid, int) | Initializes a new instance of the MapiNamedProperty class with a numeric identifier. |
| MapiNamedProperty(Guid, string) | Initializes a new instance of the MapiNamedProperty class with a name. |
MapiNamedProperty overloads
MapiNamedProperty(Guid, int)
MapiNamedProperty.csInitializes a new instance of the MapiNamedProperty class with a numeric identifier.
Parameters
propertySetGuid- The GUID of the property set, such as
MapiPropertySets.Appointment. idint- The numeric identifier (LID) of the property in the set.
MapiNamedProperty(Guid, string)
MapiNamedProperty.csInitializes a new instance of the MapiNamedProperty class with a name.
Parameters
propertySetGuid- The GUID of the property set, such as
MapiPropertySets.PublicStrings. namestring- The name of the property in the set.
Properties
| Name | Description |
|---|---|
| Id | Gets the numeric identifier (LID), or null when the property has a name. |
| Name | Gets the name, or null when the property has a numeric identifier. |
| PropertySet | Gets the GUID of the property set. |
PropertySet
MapiNamedProperty.csMethods
| Name | Description |
|---|---|
| Equals(MapiNamedProperty?) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| ToString() | Returns the property set and the identifier or the name. |
Equals overloads
Equals(MapiNamedProperty?)
MapiNamedProperty.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(MapiNamedProperty? other)Parameters
otherMapiNamedProperty?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.