Share via


Charset.TryGetCharset method (Int32, 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
'Usage
Dim codePage As Integer
Dim charset As Charset
Dim returnValue As Boolean

returnValue = Charset.TryGetCharset(codePage, _
    charset)
public static bool TryGetCharset(
    int codePage,
    out Charset charset
)

Parameters

Return value

Type: System.Boolean
The TryGetCharset method returns true if it is successful. Otherwise, it returns false.

See also

Reference

Charset class

Charset members

TryGetCharset overload

Microsoft.Exchange.Data.Globalization namespace