System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute.CharSet Field

Indicates how to marshal string parameters to the method, and controls name mangling.

Syntax

public CharSet CharSet

Remarks

Use this field with a member of the System.Runtime.InteropServices.CharSet enumeration to specify the marshaling behavior of string parameters and to specify which entry-point name to invoke (the exact name given or a name ending with "A" or "W").

For more information, see DllImportAttribute.CharSet.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0