Udostępnij za pośrednictwem


XmlReaderSettings Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy XmlReaderSettings.

Przeciążenia

Nazwa Opis
XmlReaderSettings()

Inicjuje nowe wystąpienie klasy XmlReaderSettings.

XmlReaderSettings(XmlResolver)
Przestarzałe.

Inicjuje nowe wystąpienie klasy XmlReaderSettings.

XmlReaderSettings()

Źródło:
XmlReaderSettings.cs
Źródło:
XmlReaderSettings.cs
Źródło:
XmlReaderSettings.cs
Źródło:
XmlReaderSettings.cs
Źródło:
XmlReaderSettings.cs

Inicjuje nowe wystąpienie klasy XmlReaderSettings.

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

Przykłady

Poniżej przedstawiono sposób tworzenia obiektu ustawień, który może służyć do konstruowania czytnika, który usuwa instrukcje przetwarzania, komentarze i nieistotne odstępy.

// 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

Uwagi

W poniższej tabeli przedstawiono początkowe wartości właściwości dla wystąpienia XmlReaderSettingsklasy .

Własność Wartość początkowa
Async false.
CheckCharacters true.
CloseInput false.
ConformanceLevel Document.
DtdProcessing Prohibit
IgnoreComments false.
IgnoreProcessingInstructions false.
IgnoreWhitespace false.
LineNumberOffset 0.
LinePositionOffset 0.
MaxCharactersFromEntities 0 (nie ma limitu liczby znaków, które wynikają z rozszerzania jednostek).
MaxCharactersInDocument 0 (nie ma limitu rozmiaru dokumentu XML).
NameTable null.
ProhibitDtd true. Ta właściwość jest przestarzała. Użyj DtdProcessing zamiast tego. Jeśli ustawiono ProhibitDtd wartość true domyślną na DtdProcessingProhibitwartość . Jeśli dla ustawienia ustawiono wartość ProhibitDtdDtdProcessingfalseParse.
Schemas Pusty XmlSchemaSet obiekt.
ValidationFlags ProcessIdentityConstraints.
ValidationType None.
XmlResolver Nowy XmlUrlResolver obiekt.

Zobacz też

Dotyczy

XmlReaderSettings(XmlResolver)

Uwaga

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

Inicjuje nowe wystąpienie klasy 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)

Parametry

resolver
XmlResolver

Rozpoznawanie kodu XML.

Atrybuty

Zobacz też

Dotyczy