CharSet Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Dictates which character set marshaled strings should use.

Namespace:  System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
public enum CharSet

Member nameDescription
NoneThis value is obsolete and has the same behavior as CharSet..::..Ansi.
AnsiMarshal strings as multiple-byte character strings.
UnicodeMarshal strings as Unicode 2-byte characters.
AutoAutomatically marshal strings appropriately for the target operating system.
Show: