System.Runtime.InteropServices.CharSet Enum

public enum CharSet

Base Types

Object
  ValueType
    Enum
      CharSet

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Specifies which character set marshaled strings are required to use.

Description

This enumeration is used by the DllImportAttribute to indicate the required modifications to the String arguments of an imported function.

[Note: See the DllImportAttribute class overview for an example that uses the CharSet enumeration.]

See Also

System.Runtime.InteropServices Namespace

Members

CharSet Fields

CharSet.Ansi Field
CharSet.Auto Field
CharSet.Unicode Field
CharSet.value__ Field


CharSet.Ansi Field

Ansi = 2;

Summary

Specifies that strings will be marshaled in the ANSI character set.

See Also

System.Runtime.InteropServices.CharSet Enum, System.Runtime.InteropServices Namespace

CharSet.Auto Field

Auto = 4;

Summary

Specifies that strings will be automatically marshaled in the character set appropriate for the target system (either Unicode or ANSI).

See Also

System.Runtime.InteropServices.CharSet Enum, System.Runtime.InteropServices Namespace

CharSet.Unicode Field

Unicode = 3;

Summary

Specifies that strings will be marshaled in the Unicode character set.

See Also

System.Runtime.InteropServices.CharSet Enum, System.Runtime.InteropServices Namespace

CharSet.value__ Field

value__;

See Also

System.Runtime.InteropServices.CharSet Enum, System.Runtime.InteropServices Namespace