次の方法で共有


XmlReaderSettings コンストラクター

定義

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

オーバーロード

XmlReaderSettings()

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

XmlReaderSettings(XmlResolver)
古い.

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

XmlReaderSettings()

ソース:
XmlReaderSettings.cs
ソース:
XmlReaderSettings.cs
ソース:
XmlReaderSettings.cs

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

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

次の例では、処理命令、コメント、および重要でない空白を削除するリーダーを作成するために使用できる設定オブジェクトを作成します。

// 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.
CloseInput false.
ConformanceLevel Document.
DtdProcessing Prohibit
IgnoreComments false.
IgnoreProcessingInstructions false.
IgnoreWhitespace false.
LineNumberOffset 0.
LinePositionOffset 0.
MaxCharactersFromEntities 0 (エンティティの拡張に起因する文字数に制限はありません)。
MaxCharactersInDocument 0 (XML ドキュメントのサイズに制限はありません)。
NameTable null.
ProhibitDtd true. このプロパティは廃止されています。 代わりに DtdProcessing を使用してください。 ProhibitDtd を既定値に設定した場合 trueDtdProcessingProhibitに設定します。 DtdProcessingParseに設定 falseProhibitDtd を設定していた場合。
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 リゾルバー。

属性

こちらもご覧ください

適用対象