# MapiNamedProperty

Canonical name associated with a mapped MAPI property ID.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[MapiNamedProperty.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L6)

**Implements**

`IEquatable<MapiNamedProperty>`

**Modifiers**

sealed

Canonical name associated with a mapped MAPI property ID.

## Inheritance

- object
- MapiNamedProperty

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [MapiProperty.Name](/api/email/officeimo-email-mapiproperty/#property-name)
- Property [MapiPropertyKey.Name](/api/email/officeimo-email-mapipropertykey/#property-name)
- Property [MapiPropertyKey<T>.Name](/api/email/officeimo-email-mapipropertykey-1/#property-name)

### Accepted by parameters 2

- Method [MapiNamedProperty.Equals](/api/email/officeimo-email-mapinamedproperty/#method-equals-officeimo-email-mapinamedproperty) parameter `other`
- Constructor [MapiProperty.MapiProperty](/api/email/officeimo-email-mapiproperty/#constructor-ctor-uint16-officeimo-email-mapipropertytype-object-uint32-officeimo-email-mapinamedproperty) parameter `name`

Filter members 

Show inherited

## Constructors

MapiNamedProperty 2 overloads

`public MapiNamedProperty(Guid propertySet, uint localId)` [#](#constructor-ctor-guid-uint32)

[MapiNamedProperty.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L6)

Creates a numeric named property.

Parameters

**propertySet System.Guid required**

**localId uint required**

`public MapiNamedProperty(Guid propertySet, string name)` [#](#constructor-ctor-guid-string)

[MapiNamedProperty.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L12)

Creates a string named property.

Parameters

**propertySet System.Guid required**

**name string required**

## Methods

Equals 2 overloads

`public bool Equals(MapiNamedProperty? other)` [#](#method-equals-officeimo-email-mapinamedproperty)

[MapiNamedProperty.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L31)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.Email.MapiNamedProperty? required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

`public override bool Equals(object? obj)` [#](#method-equals-object)

[MapiNamedProperty.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L38)

Determines whether the specified object is equal to the current object.

Parameters

**obj object? required**

The object to compare with the current object.

Returns

`bool` true if the specified object is equal to the current object; otherwise, false.

`public override int GetHashCode()` [#](#method-gethashcode)

[MapiNamedProperty.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L42)

Serves as the default hash function.

Returns

`int` A hash code for the current object.

`public override string ToString()` [#](#method-tostring)

[MapiNamedProperty.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L51)

Returns a string that represents the current object.

Returns

`string` A string that represents the current object.

## Inherited Methods

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

## Properties

`public Guid PropertySet { get; }` [#](#property-propertyset)

[MapiNamedProperty.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L18)

Property-set GUID.

`public uint? LocalId { get; }` [#](#property-localid)

[MapiNamedProperty.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L21)

Long ID for a numeric named property.

`public string? Name { get; }` [#](#property-name)

[MapiNamedProperty.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L24)

Name for a string named property.

`public bool IsStringNamed { get; }` [#](#property-isstringnamed)

[MapiNamedProperty.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Mapi/MapiNamedProperty.cs#L27)

True for a string-named property.

<!-- PowerForge markdown artifact sha256:8840478B96E337C2C82F7CE36B66144D2A5477F272CAD384B3468A43448A1BF0 -->
