Share via


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)

Syntax

'Declaration
<SerializableAttribute> _
Public Enumeration CharSet
[SerializableAttribute]
public enum CharSet
[SerializableAttribute]
public enum class CharSet
[<SerializableAttribute>]
type CharSet
public enum CharSet

Members

Member name Description
None This value is obsolete and has the same behavior as CharSet..::..Ansi.
Ansi Marshal strings as multiple-byte character strings.
Unicode Marshal strings as Unicode 2-byte characters.
Auto Automatically marshal strings appropriately for the target operating system.

See Also

Reference

System.Runtime.InteropServices Namespace