ConfigurationElement.OnDeserializeUnrecognizedAttribute(String, String) 方法

定義

取得值,指出在還原序列化程序中是否遇到未知的屬性 (Attribute)。Gets a value indicating whether an unknown attribute is encountered during deserialization.

protected:
 virtual bool OnDeserializeUnrecognizedAttribute(System::String ^ name, System::String ^ value);
protected virtual bool OnDeserializeUnrecognizedAttribute (string name, string value);
abstract member OnDeserializeUnrecognizedAttribute : string * string -> bool
override this.OnDeserializeUnrecognizedAttribute : string * string -> bool
Protected Overridable Function OnDeserializeUnrecognizedAttribute (name As String, value As String) As Boolean

參數

name
String

無法辨認的屬性名稱。The name of the unrecognized attribute.

value
String

無法辨認的屬性值。The value of the unrecognized attribute.

傳回

Boolean

當還原序列化時遇到未知的屬性 (Attribute),則為 true,否則為 falsetrue when an unknown attribute is encountered while deserializing; otherwise, false.

備註

在還原 OnDeserializeUnrecognizedAttribute 序列化物件時遇到未知的屬性時,會叫用 ConfigurationElementThe OnDeserializeUnrecognizedAttribute is invoked when an unknown attribute is encountered while deserializing the ConfigurationElement object.

適用於