XmlReaderSettings.IgnoreWhitespace プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > XmlReaderSettings.IgnoreWhitespace プロパティの意味・解説 

XmlReaderSettings.IgnoreWhitespace プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

意味のない空白を無視するかどうかを示す値を取得または設定します。

名前空間: System.Xml
アセンブリ: System.Xml (system.xml.dll 内)
構文構文

Public Property IgnoreWhitespace As
 Boolean
Dim instance As XmlReaderSettings
Dim value As Boolean

value = instance.IgnoreWhitespace

instance.IgnoreWhitespace = value
public bool IgnoreWhitespace { get;
 set; }
public:
property bool IgnoreWhitespace {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_IgnoreWhitespace ()

/** @property */
public void set_IgnoreWhitespace (boolean value)
public function get IgnoreWhitespace
 () : boolean

public function set IgnoreWhitespace
 (value : boolean)

プロパティ値
空白を無視する場合は true。それ以外の場合は false。既定値は false です。

解説解説

意味のない空白には、読みやすくするためにマークアップの分離に使用する、空白、タブ、および空白行が含まれます。例としては、要素の内容の空白があります。

このプロパティの設定は、混合コンテンツ モードのマークアップ間の空白、または xml:space='preserve' 属性のスコープ内に配置される空白には影響しません。

使用例使用例

処理命令、コメント、および意味のない空白を取り除くリーダーを構築するために使用できる設定オブジェクトの作成方法を次に示します。

' Set the reader settings.
Dim settings as XmlReaderSettings = new
 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.
XmlReaderSettings^ settings = gcnew XmlReaderSettings;
settings->IgnoreComments = true;
settings->IgnoreProcessingInstructions = true;
settings->IgnoreWhitespace = true;

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

XmlReaderSettings.IgnoreWhitespace プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



XmlReaderSettings.IgnoreWhitespace プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS