ProfilePropertySettingsCollection.OnDeserializeUnrecognizedElement(String, XmlReader) Método

Definição

Lida com a leitura de elementos de configuração não reconhecidos de um arquivo de configuração e faz com que o sistema de configuração lance uma exceção se o elemento não puder ser manipulado.Handles the reading of unrecognized configuration elements from a configuration file and causes the configuration system to throw an exception if the element cannot be handled.

protected:
 override bool OnDeserializeUnrecognizedElement(System::String ^ elementName, System::Xml::XmlReader ^ reader);
protected override bool OnDeserializeUnrecognizedElement (string elementName, System.Xml.XmlReader reader);
override this.OnDeserializeUnrecognizedElement : string * System.Xml.XmlReader -> bool
Protected Overrides Function OnDeserializeUnrecognizedElement (elementName As String, reader As XmlReader) As Boolean

Parâmetros

elementName
String

O nome do elemento não reconhecido.The name of the unrecognized element.

reader
XmlReader

Um fluxo de entrada que lê o XML do arquivo de configuração.An input stream that reads XML from the configuration file.

Retornos

Boolean

true se o elemento não reconhecido foi desserializado com êxito; caso contrário, false.true if the unrecognized element was deserialized successfully; otherwise, false.

Exceções

elementName é igual a "limpar"elementName equals "clear" - ou --or- elementName é igual a "grupo".elementName equals "group".

Comentários

Essa implementação de OnDeserializeUnrecognizedElement gera erros especializados se o nome do elemento for "Clear" ou "Group".This implementation of OnDeserializeUnrecognizedElement throws specialized errors if the element name is either "clear" or "group". Depois de verificar essas condições, o método chama explicitamente sua implementação base, o ConfigurationElementCollection.OnDeserializeUnrecognizedElement método.After checking for these conditions, the method then explicitly calls its base implementation, the ConfigurationElementCollection.OnDeserializeUnrecognizedElement method.

Aplica-se a