UnmanagedFunctionPointerAttribute.ThrowOnUnmappableChar Field


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

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public bool ThrowOnUnmappableChar

Field Value

Type: System.Boolean

The 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 ThrowOnUnmappableChar.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top