DiagnosticsConfigurationHandler.Create(Object, Object, XmlNode) Método

Definição

Analisa as definições de configuração para a seção do < > elemento System. Diagnostics dos arquivos de configuração.Parses the configuration settings for the <system.diagnostics> Element section of configuration files.

Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.

public:
 virtual System::Object ^ Create(System::Object ^ parent, System::Object ^ configContext, System::Xml::XmlNode ^ section);
public virtual object Create (object parent, object configContext, System.Xml.XmlNode section);
abstract member Create : obj * obj * System.Xml.XmlNode -> obj
override this.Create : obj * obj * System.Xml.XmlNode -> obj
Public Overridable Function Create (parent As Object, configContext As Object, section As XmlNode) As Object

Parâmetros

parent
Object

O objeto herdado do caminho paiThe object inherited from the parent path

configContext
Object

Reservado.Reserved. Usado no ASP.NET para transmitir o caminho virtual da configuração que está sendo avaliada.Used in ASP.NET to convey the virtual path of the configuration being evaluated.

section
XmlNode

O nó XML raiz na seção a ser manipulado.The root XML node at the section to handle.

Retornos

Object

Um novo objeto de configuração na forma de um Hashtable.A new configuration object, in the form of a Hashtable.

Implementações

Exceções

Não foi possível encontrar as opções.Switches could not be found.

- ou --or-

Não foi possível encontrar a asserção.Assert could not be found.

- ou --or-

Não foi possível encontrar o rastreamento.Trace could not be found.

- ou --or-

Não foi possível encontrar os contadores de desempenho.Performance counters could not be found.

Comentários

O Create método popula um Hashtable com os valores obtidos da seção < System. Diagnostics > de um arquivo de configuração e retorna a tabela de hash.The Create method populates a Hashtable with the values obtained from the <system.diagnostics> section of a configuration file and returns the hashtable.

Aplica-se a