Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MapiPropertyKey

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email
Source revision
5e1eb82b5acd with working tree changes

Describes the canonical identity and supported wire types of a standard or named MAPI property.

Inheritance

  • object
  • MapiPropertyKey

Derived Types

Methods

public bool Accepts(MapiPropertyType propertyType) #

Returns whether a wire type is accepted by this key.

Parameters

propertyType OfficeIMO.Email.MapiPropertyType required

Returns

bool
public ushort GetStandardPropertyId() #

Returns the standard property identifier, or throws when this key identifies a named property.

Returns

ushort
public bool Matches(MapiProperty property) #

Returns whether a property has this key's canonical identity and an accepted wire type.

Parameters

property OfficeIMO.Email.MapiProperty required

Returns

bool
MatchesIdentity 2 overloads
public bool MatchesIdentity(MapiProperty property) #

Returns whether a property has this key's canonical identity, without checking its wire type.

Parameters

property OfficeIMO.Email.MapiProperty required

Returns

bool
public bool MatchesIdentity(ushort propertyId) #

Returns whether a standard property identifier has this key's canonical identity.

Parameters

propertyId ushort required

Returns

bool
public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Properties

public string CanonicalName { get; } #

Microsoft canonical name or a stable application-defined name.

public ushort? PropertyId { get; } #

Standard property identifier, or null for a named property.

public MapiNamedProperty? Name { get; } #

Named-property identity, or null for a standard property.

public MapiPropertyType PreferredType { get; } #

Preferred wire type used when a new value is written.

public IReadOnlyList<MapiPropertyType> AcceptedTypes { get; } #

Wire types accepted when reading the property.

public bool IsNamed { get; } #

True when this key identifies a named property.

public virtual Type ValueType { get; } #

Managed value type exposed by a typed key.