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;

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


このページでは「.NET Framework クラス ライブラリ リファレンス」からXmlReaderSettings.IgnoreWhitespace プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からXmlReaderSettings.IgnoreWhitespace プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からXmlReaderSettings.IgnoreWhitespace プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



XmlReaderSettings.IgnoreWhitespace プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS