Share via


CharSet Enumeration

Dictates which character set marshaled strings should use.

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

Syntax

[SerializableAttribute]
public enum CharSet

Members

  Member name Description
Ansi A value that causes strings to be marshaled as multiple-byte character strings.
Auto A value that causes strings to be automatically marshaled appropriately for the target operating system.
None An obsolete value that has the same behavior as the CharSet.Ansi value.
Unicode A value that causes strings to be marshaled as 2-byte Unicode characters.

Remarks

Items in this namespace are for use by Microsoft® Visual Studio®. You should not try to use them in your applications.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

System.Runtime.InteropServices Namespace