Mono Class Library: System.Runtime.InteropServices Namespace

System.Runtime.InteropServices.CharSet Enumeration

Specifies which character set marshaled strings are required to use.
[System.Runtime.InteropServices.ComVisible(true)]
public enum CharSet

Remarks

This enumeration is used by the System.Runtime.InteropServices.DllImportAttribute to indicate the required modifications to the string arguments of an imported function.

Note: See the System.Runtime.InteropServices.DllImportAttribute class overview for an example that uses the System.Runtime.InteropServices.CharSet enumeration.

Members

Member NameDescription
Ansi Specifies that strings will be marshaled in the ANSI character set.
Auto Specifies that strings will be automatically marshaled in the character set appropriate for the target system (either Unicode or ANSI).
NoneDocumentation for this section has not yet been entered.
Unicode Specifies that strings will be marshaled in the Unicode character set.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0