XmlReaderSettings コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
XmlReaderSettings クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| XmlReaderSettings() |
XmlReaderSettings クラスの新しいインスタンスを初期化します。 |
| XmlReaderSettings(XmlResolver) |
古い.
XmlReaderSettings クラスの新しいインスタンスを初期化します。 |
XmlReaderSettings()
XmlReaderSettings クラスの新しいインスタンスを初期化します。
public:
XmlReaderSettings();
public XmlReaderSettings();
Public Sub New ()
例
次の例では、処理命令、コメント、および重要でない空白を削除するリーダーを作成するために使用できる設定オブジェクトを作成します。
// 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を既定値に設定trueDtdProcessingを Prohibit に設定します。
ProhibitDtdを Parse に設定falseDtdProcessingに設定した場合。 |
| 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 リゾルバー。
- 属性