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
‘선언
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.