Редагувати

Поділитися через


ConfigurationElementInterceptor.OnDeserializeUnrecognizedAttribute Method

Definition

Gets a value that indicates whether an unknown attribute is encountered during deserialization. Always returns true.

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

Parameters

name
String

The name of the unrecognized attribute.

value
String

The value of the unrecognized attribute.

Returns

Always returns true, which indicates that an unrecognized attribute has been encountered.

Remarks

The ConfigurationElementInterceptor class is specifically implemented to handle arbitrary, user-defined attributes and elements. For this reason, this method returns true when the .NET Framework detects an unrecognized element or attribute to keep the parser running.

Applies to