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.
Member Name Description 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). None Documentation for this section has not yet been entered. Unicode Specifies that strings will be marshaled in the Unicode character set.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0