MapiPropertyContainer.TryGetPropertyString

TryGetPropertyString(long, int)

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

public string TryGetPropertyString(long tag, int codepage)
ParameterTypeDescription
tagInt64The property tag key.
codepageInt32The code page.

Return Value

String that contains the contents of property data.

See Also


TryGetPropertyString(long)

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

public string TryGetPropertyString(long tag)
ParameterTypeDescription
tagInt64The property tag key.

Return Value

String that contains the contents of property data.

See Also


TryGetPropertyString(long, ref string, int)

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)
ParameterTypeDescription
tagInt64The MAPI property tag.
valueString&When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized.
codepageInt32The specified codepage used to get string value.

Return Value

true if s was converted successfully; otherwise, false.

See Also


TryGetPropertyString(long, ref string)

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)
ParameterTypeDescription
tagInt64The MAPI property tag.
valueString&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