XmlReaderSettings Construtores

Definição

Inicializa uma nova instância da classe XmlReaderSettings.

Sobrecargas

XmlReaderSettings()

Inicializa uma nova instância da classe XmlReaderSettings.

XmlReaderSettings(XmlResolver)
Obsoleto.

Inicializa uma nova instância da classe XmlReaderSettings.

XmlReaderSettings()

Inicializa uma nova instância da classe XmlReaderSettings.

public:
 XmlReaderSettings();
public XmlReaderSettings ();
Public Sub New ()

Exemplos

O seguinte cria um objeto de configurações que pode ser usado para construir um leitor que tira instruções de processamento, comentários e espaço em branco insignificante.

// Set the reader settings.
XmlReaderSettings^ settings = gcnew XmlReaderSettings;
settings->IgnoreComments = true;
settings->IgnoreProcessingInstructions = true;
settings->IgnoreWhitespace = true;
// Set the reader settings.
XmlReaderSettings settings = new XmlReaderSettings();
settings.IgnoreComments = true;
settings.IgnoreProcessingInstructions = true;
settings.IgnoreWhitespace = true;
' Set the reader settings.
Dim settings as XmlReaderSettings = new XmlReaderSettings()
settings.IgnoreComments = true
settings.IgnoreProcessingInstructions = true
settings.IgnoreWhitespace = true

Comentários

A tabela a seguir mostra valores de propriedade iniciais para uma instância de XmlReaderSettings.

Propriedade Valor inicial
Async false.
CheckCharacters true.
ConformanceLevel Document.
IgnoreComments false.
IgnoreProcessingInstructions false.
IgnoreWhitespace false.
LineNumberOffset 0.
LinePositionOffset 0.
MaxCharactersFromEntities 0 (não há limite no número de caracteres resultantes da expansão de entidades).
MaxCharactersInDocument 0 (não há limite no tamanho do documento XML).
NameTable null.
DtdProcessing Prohibit
ProhibitDtd true. Esta propriedade está obsoleta. Use DtdProcessing em seu lugar. Se você tivesse definido ProhibitDtd como seu valor true padrão definido DtdProcessing como Prohibit. Se você tivesse definido ProhibitDtd como false DtdProcessing Parse.
Schemas Um objeto XmlSchemaSet vazio.
ValidationFlags ProcessIdentityConstraints.
ValidationType None.
XmlResolver Um novo objeto XmlUrlResolver.

Confira também

Aplica-se a

XmlReaderSettings(XmlResolver)

Cuidado

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Inicializa uma nova instância da classe XmlReaderSettings.

public:
 XmlReaderSettings(System::Xml::XmlResolver ^ resolver);
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public XmlReaderSettings (System.Xml.XmlResolver resolver);
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
new System.Xml.XmlReaderSettings : System.Xml.XmlResolver -> System.Xml.XmlReaderSettings
Public Sub New (resolver As XmlResolver)

Parâmetros

resolver
XmlResolver

O resolvedor XML.

Atributos

Confira também

Aplica-se a