XmlReaderSettings コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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 リゾルバー。
- 属性