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
- codePage
Type: System.Int32
The code page for which to obtain a Charset object.
- charset
Type: Microsoft.Exchange.Data.Globalization.Charset
A Charset in which to store the result.
Return Value
Type: System.Boolean
The TryGetCharset method returns true if it is successful. Otherwise, it returns false.