Marshal.SystemMaxDBCSCharSize 欄位

定義

表示用於目前作業系統雙位元組字元集 (DBCS) 大小的最大值,以位元組為單位。 此欄位為唯讀。

public: static initonly int SystemMaxDBCSCharSize;
public static readonly int SystemMaxDBCSCharSize;
 staticval mutable SystemMaxDBCSCharSize : int
Public Shared ReadOnly SystemMaxDBCSCharSize As Integer 

欄位值

範例

下列範例示範 SystemDefaultCharSize 欄位。 此程式碼範例是提供給 類別之較大範例的 Marshal 一部分。

// Demonstrate the use of public static fields of the Marshal
// class.
Console::WriteLine(
    "SystemDefaultCharSize={0},SystemMaxDBCSCharSize={1}",
    Marshal::SystemDefaultCharSize,
    Marshal::SystemMaxDBCSCharSize);
// Demonstrate the use of public static fields of the Marshal class.
Console.WriteLine("SystemDefaultCharSize={0}, SystemMaxDBCSCharSize={1}",
    Marshal.SystemDefaultCharSize, Marshal.SystemMaxDBCSCharSize);
' Demonstrate the use of public static fields of the Marshal class.
Console.WriteLine("SystemDefaultCharSize={0}, SystemMaxDBCSCharSize={1}", Marshal.SystemDefaultCharSize, Marshal.SystemMaxDBCSCharSize)

適用於

另請參閱