MapiPropertyContainer

MapiPropertyContainer class

Represents the base class for MapiAttachment , MapiRecipient , MapiMessage .

Constructors

NameDescription
MapiPropertyContainer (2 overloads)Initializes a new instance of the MapiPropertyContainer class.

Methods

NameDescription
CreateMapiNodeCreates the mapi node.
get_CodePageGets the code page.
get_CurrentEncoding
get_PropertiesGets the collection of properties.
GetPropertyGets MAPI property by property descriptor.
GetPropertyBooleanGets the value of the property specified by tag as Boolean type.
GetPropertyBytesGets the string value of the property specified by tag.
GetPropertyDateTimeGets the value of the property specified by tag as DateTime type.
GetPropertyInt32Gets the int32 value of the property specified by tag.
GetPropertyLongGets the value of the property specified by tag as Long (int64) type.
GetPropertyShortGets the value of the property specified by tag as Short type.
GetPropertyString (2 overloads)Gets the string value of the property specified by tag.
GetSubStorages
IsStoreUnicodeOkDetermines if string properties are Unicode encoded or not.
SetProperty (8 overloads)Set the property.
SetPropertyLongSet the long property.
TryGetNamedPropertyIf MapiNamedPropertyMappingStorage is available, initializes and returns MapiNamedProperty , otherwise null.
TryGetPropertyDataTry to get the property data with specified tag key.
TryGetPropertyDateTimeGets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded.
TryGetPropertyInt32Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded.
TryGetPropertyLongGets the value of the specified property as Long type. A return value indicates whether the operation succeeded.
TryGetPropertyString (4 overloads)Try to get a property data as string with specified tag.
codePageThe code page.
DefaultCodePage
propertyDictionaryThe property dictionary.