MapiNamedPropertyMappingStorage.AddNamedPropertyMapping

AddNamedPropertyMapping(MapiProperty, long, Guid)

Registers a property as a named property with a numeric ID.

public void AddNamedPropertyMapping(MapiProperty property, long nameId, Guid guid)
ParameterTypeDescription
propertyMapiPropertyThe property; its tag must be in the named property range.
nameIdInt64The numeric ID (LID) of the named property.
guidGuidThe GUID of the property set.

Remarks

property should have a valid id for named property, GetNextAvailablePropertyId can be used to generate one. Otherwise an exception will be thrown.

See Also


AddNamedPropertyMapping(MapiProperty, string, Guid)

Registers a property as a named property with a string name.

public void AddNamedPropertyMapping(MapiProperty property, string nameId, Guid guid)
ParameterTypeDescription
propertyMapiPropertyThe property; its tag must be in the named property range.
nameIdStringThe name of the named property.
guidGuidThe GUID of the property set.

Remarks

property should have a valid id for named property, GetNextAvailablePropertyId can be used to generate one. Otherwise an exception will be thrown.

See Also