XmlReaderSettings コンストラクター

定義

XmlReaderSettings クラスの新しいインスタンスを初期化します。

オーバーロード

XmlReaderSettings()

XmlReaderSettings クラスの新しいインスタンスを初期化します。

XmlReaderSettings(XmlResolver)
互換性のために残されています。

XmlReaderSettings クラスの新しいインスタンスを初期化します。

XmlReaderSettings()

XmlReaderSettings クラスの新しいインスタンスを初期化します。

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

次に示すように、処理命令、コメント、および重要でない空白を除去するリーダーを構築するために使用できる settings オブジェクトを作成します。

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

注釈

次の表に、インスタンスの XmlReaderSettings初期プロパティ値を示します。

プロパティ 初期値
Async false.
CheckCharacters true.
ConformanceLevel Document.
IgnoreComments false.
IgnoreProcessingInstructions false.
IgnoreWhitespace false.
LineNumberOffset 0。
LinePositionOffset 0。
MaxCharactersFromEntities 0 (エンティティの展開に起因する文字数に制限はありません)。
MaxCharactersInDocument 0 (XML ドキュメントのサイズに制限はありません)。
NameTable null.
DtdProcessing Prohibit
ProhibitDtd true. このプロパティは今後使用しません。 代わりに、DtdProcessing を使用してください。 既定値true DtdProcessing Prohibitに設定ProhibitDtdされている場合は. に設定 ProhibitDtd false DtdProcessing Parseしていた場合は.
Schemas 空の XmlSchemaSet オブジェクトです。
ValidationFlags ProcessIdentityConstraints.
ValidationType None.
XmlResolver 新しい XmlUrlResolver オブジェクト。

こちらもご覧ください

適用対象

XmlReaderSettings(XmlResolver)

注意事項

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

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)

パラメーター

resolver
XmlResolver

XML リゾルバー。

属性

こちらもご覧ください

適用対象