Indicates how string data members within the class should be marshaled. If the CharSet field is set to the CharSet value Unicode, all string arguments are converted to Unicode characters before being passed to the unmanaged implementation. If the field is set to Ansi, the strings are converted to ANSI strings. If the CharSet is set to Auto, the conversion is platform dependent (Unicode on WinNT and ANSI on Win 9x).
[Visual Basic] Public CharSet As CharSet [C#] public CharSet CharSet; [C++] public: CharSet CharSet; [JScript] public var CharSet : CharSet;
StructLayoutAttribute Class | StructLayoutAttribute Members | System.Runtime.InteropServices Namespace