Marshal.SystemDefaultCharSize Pole

Definice

Představuje výchozí velikost znaku v systému; Výchozí hodnota je 2 pro systémy Unicode a 1 pro systémy ANSI. Toto pole je jen ke čtení.

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

Hodnota pole

Příklady

Následující příklad ukazuje SystemDefaultCharSize pole . Tento příklad kódu je součástí většího příkladu Marshal pro třídu .

// 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)

Platí pro

Viz také