XmlReaderSettings コンストラクター
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
XmlReaderSettings クラスの新しいインスタンスを初期化します。
XmlReaderSettings() |
XmlReaderSettings クラスの新しいインスタンスを初期化します。 |
XmlReaderSettings(XmlResolver) |
古い.
XmlReaderSettings クラスの新しいインスタンスを初期化します。 |
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 を既定値に設定した場合 true DtdProcessing を Prohibit に設定します。
DtdProcessing を Parse に設定 false ProhibitDtd を設定していた場合。 |
Schemas | 空の XmlSchemaSet オブジェクト。 |
ValidationFlags | ProcessIdentityConstraints. |
ValidationType | None. |
XmlResolver | 新しい XmlUrlResolver オブジェクト。 |
こちらもご覧ください
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
注意事項
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 リゾルバー。
- 属性
こちらもご覧ください
適用対象
.NET Framework 4.8.1 およびその他のバージョン
製品 | バージョン (廃止) |
---|---|
.NET Framework | (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。