ConfigurationElement.OnDeserializeUnrecognizedAttribute(String, String) ConfigurationElement.OnDeserializeUnrecognizedAttribute(String, String) ConfigurationElement.OnDeserializeUnrecognizedAttribute(String, String) ConfigurationElement.OnDeserializeUnrecognizedAttribute(String, String) Method

定義

取得值,指出在還原序列化程序中是否遇到未知的屬性 (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 String String String

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

value
String String String String

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

傳回

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

備註

當還原序列化 ConfigurationElement 物件時,如果發生未知的屬性,就會叫用 OnDeserializeUnrecognizedAttributeThe OnDeserializeUnrecognizedAttribute is invoked when an unknown attribute is encountered while deserializing the ConfigurationElement object.

適用於