ValidatorCollection.IsReadOnly プロパティ
アセンブリ: System.Web (system.web.dll 内)

コレクションが読み取り専用の場合は true。それ以外の場合は false。

IsReadOnly プロパティを使用したコード例を次に示します。
' 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));

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からValidatorCollection.IsReadOnly プロパティを検索する場合は、下記のリンクをクリックしてください。

- ValidatorCollection.IsReadOnly プロパティのページへのリンク