XmlReaderSettings Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Inicializuje novou instanci XmlReaderSettings třídy.
Přetížení
XmlReaderSettings() |
Inicializuje novou instanci XmlReaderSettings třídy. |
XmlReaderSettings(XmlResolver) |
Zastaralé.
Inicializuje novou instanci XmlReaderSettings třídy. |
XmlReaderSettings()
Inicializuje novou instanci XmlReaderSettings třídy.
public:
XmlReaderSettings();
public XmlReaderSettings ();
Public Sub New ()
Příklady
Následující příkaz vytvoří objekt nastavení, který lze použít k vytvoření čtečky, která odstraní pokyny, komentáře a nevýznamné prázdné znaky.
// 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
Poznámky
V následující tabulce jsou uvedeny počáteční hodnoty vlastností instance XmlReaderSettings.
Vlastnost | Počáteční hodnota |
---|---|
Async | false . |
CheckCharacters | true . |
ConformanceLevel | Document. |
IgnoreComments | false . |
IgnoreProcessingInstructions | false . |
IgnoreWhitespace | false . |
LineNumberOffset | 0. |
LinePositionOffset | 0. |
MaxCharactersFromEntities | 0 (počet znaků, které jsou výsledkem rozbalení entit, neexistuje žádné omezení). |
MaxCharactersInDocument | 0 (velikost dokumentu XML není omezena). |
NameTable | null . |
DtdProcessing | Prohibit |
ProhibitDtd | true . Tato vlastnost je zastaralá. Místo toho použijte DtdProcessing. Pokud jste nastavili ProhibitDtd výchozí hodnotu true nastavenou DtdProcessing na Prohibit hodnotu . Pokud jste nastavení nastavili ProhibitDtd false DtdProcessing na Parse hodnotu . |
Schemas | Prázdný XmlSchemaSet objekt. |
ValidationFlags | ProcessIdentityConstraints. |
ValidationType | None. |
XmlResolver | Nový XmlUrlResolver objekt. |
Viz také
Platí pro
XmlReaderSettings(XmlResolver)
Upozornění
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Inicializuje novou instanci XmlReaderSettings třídy.
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
Překladač XML.
- Atributy