System.Runtime.InteropServices.BestFitMappingAttribute.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

If false, the BestFitMappingAttribute.ThrowOnUnmappableChar field is disabled; otherwise, an exception is thrown each time the interop marshaler encounters an unmappable character. The default false.

Requirements

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