TryGetPropertyString

MapiPropertyContainer.TryGetPropertyString method (1 of 4)

Try to get a property data as string with specified tag and code page.

public string TryGetPropertyString(long tag, int codepage)
Parameter Type Description
tag Int64 The property tag key.
codepage Int32 The code page.

Return Value

String that contains the contents of property data.

See Also


MapiPropertyContainer.TryGetPropertyString method (2 of 4)

Try to get a property data as string with specified tag.

public string TryGetPropertyString(long tag)
Parameter Type Description
tag Int64 The property tag key.

Return Value

String that contains the contents of property data.

See Also


MapiPropertyContainer.TryGetPropertyString method (3 of 4)

Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.

public bool TryGetPropertyString(long tag, ref string value, int codepage)
Parameter Type Description
tag Int64 The MAPI property tag.
value String& When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized.
codepage Int32 The specified codepage used to get string value.

Return Value

true if s was converted successfully; otherwise, false.

See Also


MapiPropertyContainer.TryGetPropertyString method (4 of 4)

Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.

public bool TryGetPropertyString(long tag, ref string value)
Parameter Type Description
tag Int64 The MAPI property tag.
value String& When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized.

Return Value

true if s was converted successfully; otherwise, false.

See Also