PropertyDescriptor.GetInstance

GetInstance(int, PropertyDataType)

Gets the descriptor of a tagged property by its ID and data type.

public static PidTagPropertyDescriptor GetInstance(int id, PropertyDataType dataType)
ParameterTypeDescription
idInt32The 16-bit ID of the property.
dataTypePropertyDataTypeThe data type of the property.

Return Value

The descriptor: the one from KnownPropertyList if the property is known; otherwise a new one.

See Also


GetInstance(long)

Gets the descriptor of a tagged property by its tag.

public static PidTagPropertyDescriptor GetInstance(long tag)
ParameterTypeDescription
tagInt64The tag of the property.

Return Value

The descriptor: the one from KnownPropertyList if the property is known; otherwise a new one.

See Also


GetInstance(long, PropertyDataType, Guid)

Gets the descriptor of a named property by its numeric ID (LID).

public static PidLidPropertyDescriptor GetInstance(long lid, PropertyDataType dataType, 
    Guid propertySet)
ParameterTypeDescription
lidInt64The numeric ID of the property.
dataTypePropertyDataTypeThe data type of the property.
propertySetGuidThe GUID of the property set.

Return Value

The descriptor: the one from KnownPropertyList if the property is known; otherwise a new one.

See Also


GetInstance(string, PropertyDataType, Guid)

Gets the descriptor of a named property by its name.

public static PidNamePropertyDescriptor GetInstance(string name, PropertyDataType dataType, 
    Guid propertySet)
ParameterTypeDescription
nameStringThe name of the property.
dataTypePropertyDataTypeThe data type of the property.
propertySetGuidThe GUID of the property set.

Return Value

The descriptor: the one from KnownPropertyList if the property is known; otherwise a new one.

See Also


GetInstance(MapiProperty)

Gets the descriptor of a MAPI property.

public static PropertyDescriptor GetInstance(MapiProperty property)
ParameterTypeDescription
propertyMapiPropertyThe property.

Return Value

The descriptor of property.

See Also