Share via


FileType.GetEncodingCodePage Method

Gets the code page that represents the specified encoding.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public Shared Function GetEncodingCodePage ( _
    encoding As String _
) As Integer
public static int GetEncodingCodePage(
    string encoding
)
public:
static int GetEncodingCodePage(
    String^ encoding
)
static member GetEncodingCodePage : 
        encoding:string -> int
public static function GetEncodingCodePage(
    encoding : String
) : int

Parameters

  • encoding
    Type: System.String

    The encoding for which the code page is desired.

Return Value

Type: System.Int32
The code page that represents the specified encoding.

Exceptions

Exception Condition
InvalidFileTypeException

.NET Framework Security

See Also

Reference

FileType Class

Microsoft.TeamFoundation.VersionControl.Client Namespace