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

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

ValidatorCollection.IsSynchronized プロパティ

ValidatorCollection コレクション同期がとられているかどうかを示す値を取得します

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As ValidatorCollection
Dim value As Boolean

value = instance.IsSynchronized
public bool IsSynchronized { get;
 }
public:
virtual property bool IsSynchronized {
    bool get () sealed;
}
/** @property */
public final boolean get_IsSynchronized ()

プロパティ
コレクション同期をとられている場合trueそれ以外場合false

解説解説

コレクション同期をとられている場合、このコレクションスレッド セーフです。

使用例使用例

IsSynchronized プロパティ使用したコード例次に示します

' Get 'Validators' of the page to myCollection.
Dim myCollection1 As ValidatorCollection =
 Page.Validators
' Get 'IsReadOnly' property of 'ValidatorCollection'.
Dim readOnly_bool As Boolean
 = myCollection1.IsReadOnly

' Get 'IsSynchronized' property of 'ValidatorCollection'.
Dim synchronized_bool As Boolean
 = myCollection1.IsSynchronized

' Get a synchronized object of the 'ValidatorCollection'.
Dim myCollection2 As ValidatorCollection =
 CType(myCollection1.SyncRoot, ValidatorCollection)
myCollection1.Add(myCollection1(0))
// Get 'Validators' of the page to myCollection.
ValidatorCollection myCollection1 = Page.Validators;

// Get 'IsReadOnly' property of 'ValidatorCollection'.
bool readOnly_bool = myCollection1.IsReadOnly;

// Get 'IsSynchronized' property of 'ValidatorCollection'.
bool synchronized_bool = myCollection1.IsSynchronized;

// Get a synchronized object of the 'ValidatorCollection'.
ValidatorCollection myCollection2 = (ValidatorCollection)myCollection1.SyncRoot;
myCollection1.Add(myCollection1[0]);
// Get 'Validators' of the page to myCollection.
ValidatorCollection myCollection1 = get_Validators();
// Get 'IsReadOnly' property of 'ValidatorCollection'.
boolean readOnly_bool = myCollection1.get_IsReadOnly();
// Get 'IsSynchronized' property of 'ValidatorCollection'.
boolean synchronized_bool = myCollection1.get_IsSynchronized();
// Get a synchronized object of the 'ValidatorCollection'.
ValidatorCollection myCollection2 = (ValidatorCollection)(
    myCollection1.get_SyncRoot());
myCollection1.Add(myCollection1.get_Item(0));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ValidatorCollection クラス
ValidatorCollection メンバ
System.Web.UI 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS