AddressItem.TryGetDisplayName Method (out String)
The TryGetDisplayName method tries to get the display name of this TryGetDisplayName object.
Namespace: Microsoft.Exchange.Data.Mime
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)
Syntax
'Declaration
Public Function TryGetDisplayName ( _
<OutAttribute> ByRef displayName As String _
) As Boolean
public bool TryGetDisplayName (
out string displayName
)
public:
bool TryGetDisplayName (
[OutAttribute] String^% displayName
)
public boolean TryGetDisplayName (
/** @attribute OutAttribute() */ /** @ref */ String displayName
)
JScript does not support passing value-type arguments by reference.
Parameters
- displayName
The string in which to store the display name.
Return Value
The TryGetDisplayName method returns true if it successfully read the display name. If the encoding of the display name is unsupported, TryGetDisplayName returns false, and displayName is set to null.
Remarks
The TryGetDisplayName method provides access to the value stored in the DisplayName property only if the DisplayName property uses an encoding that is supported.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003