다음을 통해 공유


Charset.TryGetCharset Method (Int32, out Charset)

The TryGetCharset method attempts to put a Charset object into the charset out parameter that corresponds to the codePage 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 ( _
    codePage As Integer, _
    <OutAttribute> ByRef charset As Charset _
) As Boolean
public static bool TryGetCharset (
    int codePage,
    out Charset charset
)
public:
static bool TryGetCharset (
    int codePage, 
    [OutAttribute] Charset^% charset
)
public static boolean TryGetCharset (
    int codePage, 
    /** @attribute OutAttribute() */ /** @ref */ Charset charset
)
JScript does not support passing value-type arguments by reference.

Parameters

  • codePage
    The code page 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