MapiPropertyContainer.TryGetPropertyString

TryGetPropertyString(long, int)

Gets the value of a property as a string, decoding an ANSI string with the specified code page.

public string TryGetPropertyString(long tag, int codepage)
ParameterTypeDescription
tagInt64The tag of the property.
codepageInt32The code page of an ANSI (8-bit) string.

Return Value

The value, or null if the property does not exist.

See Also


TryGetPropertyString(long)

Gets the value of a property as a string.

public string TryGetPropertyString(long tag)
ParameterTypeDescription
tagInt64The tag of the property.

Return Value

The value, or null if the property does not exist.

See Also


TryGetPropertyString(long, ref string, int)

Gets the value of a property as a string, if the property exists, decoding an ANSI string with the specified code page.

public bool TryGetPropertyString(long tag, ref string value, int codepage)
ParameterTypeDescription
tagInt64The tag of the property.
valueString&When this method returns, the value of the property, if it exists; otherwise, the value is unchanged.
codepageInt32The code page of an ANSI (8-bit) string.

Return Value

true if the property exists; otherwise, false.

See Also


TryGetPropertyString(long, ref string)

Gets the value of a property as a string, if the property exists.

public bool TryGetPropertyString(long tag, ref string value)
ParameterTypeDescription
tagInt64The tag of the property.
valueString&When this method returns, the value of the property, if it exists; otherwise, the value is unchanged.

Return Value

true if the property exists; otherwise, false.

See Also