Share via


Charset.TryGetCharset Method (String, out Charset)

The TryGetCharset method attempts to put a Charset object into the charset out parameter that corresponds to the name parameter. TryGetCharset does not throw an exception if it fails.

Namespace: Microsoft.Exchange.Data.Globalization
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)

Syntax

'Declaration
Public Shared Function TryGetCharset ( _
    name As String, _
    <OutAttribute> ByRef charset As Charset _
) As Boolean
public static bool TryGetCharset (
    string name,
    out Charset charset
)
public:
static bool TryGetCharset (
    String^ name, 
    [OutAttribute] Charset^% charset
)
public static boolean TryGetCharset (
    String name, 
    /** @attribute OutAttribute() */ /** @ref */ Charset charset
)
JScript does not support passing value-type arguments by reference.

Parameters

  • name
    The character set name for which to obtain a Charset object.
  • charset
    A Charset in which to store the result.

Return Value

The TryGetCharset method returns true if it is successful. Otherwise, it returns false.

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