System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute.ThrowOnUnmappableChar Field

Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character.

Syntax

public bool ThrowOnUnmappableChar

Remarks

The UnmanagedFunctionPointerAttribute.ThrowOnUnmappableChar field is false by default, which means that the field is disabled. Set this field to true to indicate that an exception is thrown each time the interop marshaler converts an unmappable character.

For more information, see DllImportAttribute.ThrowOnUnmappableChar.

Requirements

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