UnmanagedFunctionPointerAttribute.ThrowOnUnmappableChar 字段

定义

启用或禁用在遇到已被转换为 ANSI“?”字符的无法映射的 Unicode 字符时引发异常。Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character.

public: bool ThrowOnUnmappableChar;
public bool ThrowOnUnmappableChar;
val mutable ThrowOnUnmappableChar : bool
Public ThrowOnUnmappableChar As Boolean 

字段值

Boolean

注解

ThrowOnUnmappableChar false 默认情况下,字段是,这意味着该字段处于禁用状态。The ThrowOnUnmappableChar field is false by default, which means that the field is disabled. 将此字段设置为 true ,以指示每次互操作封送拆收器转换不可映射的字符时引发异常。Set this field to true to indicate that an exception is thrown each time the interop marshaler converts an unmappable character.

有关详细信息,请参阅 ThrowOnUnmappableCharFor more information, see ThrowOnUnmappableChar.

适用于

另请参阅