Aracılığıyla paylaş


XmlReaderSettings Oluşturucular

Tanım

XmlReaderSettings sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

XmlReaderSettings()

XmlReaderSettings sınıfının yeni bir örneğini başlatır.

XmlReaderSettings(XmlResolver)
Geçersiz.

XmlReaderSettings sınıfının yeni bir örneğini başlatır.

XmlReaderSettings()

Source:
XmlReaderSettings.cs
Source:
XmlReaderSettings.cs
Source:
XmlReaderSettings.cs

XmlReaderSettings sınıfının yeni bir örneğini başlatır.

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

Örnekler

Aşağıdaki, işleme yönergelerini, açıklamaları ve önemsiz boşlukları silip bir okuyucu oluşturmak için kullanılabilecek bir ayarlar nesnesi oluşturur.

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

Açıklamalar

Aşağıdaki tabloda bir örneği için ilk özellik değerleri gösterilmektedir XmlReaderSettings.

Özellik İlk değer
Async false.
CheckCharacters true.
ConformanceLevel Document.
IgnoreComments false.
IgnoreProcessingInstructions false.
IgnoreWhitespace false.
LineNumberOffset 0.
LinePositionOffset 0.
MaxCharactersFromEntities 0 (varlıkların genişletilmesinden kaynaklanan karakter sayısında bir sınır yoktur).
MaxCharactersInDocument 0 (XML belgesinin boyutu üzerinde bir sınır yoktur).
NameTable null.
DtdProcessing Prohibit
ProhibitDtd true. Bu özellik kullanımdan kaldırıldı. Bunun yerine DtdProcessing kullanın. Varsayılan değerini olarak ayarlamışsanız ProhibitDtdDtdProcessingProhibit.true olarak ayarlamış ProhibitDtdfalseDtdProcessingParseolsaydınız.
Schemas Boş XmlSchemaSet bir nesne.
ValidationFlags ProcessIdentityConstraints.
ValidationType None.
XmlResolver Yeni XmlUrlResolver bir nesne.

Ayrıca bkz.

Şunlara uygulanır

XmlReaderSettings(XmlResolver)

Dikkat

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

XmlReaderSettings sınıfının yeni bir örneğini başlatır.

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)

Parametreler

resolver
XmlResolver

XML çözümleyicisi.

Öznitelikler

Ayrıca bkz.

Şunlara uygulanır