ValidatorCollection.CopyTo メソッド
アセンブリ: System.Web (system.web.dll 内)

Dim instance As ValidatorCollection Dim array As Array Dim index As Integer instance.CopyTo(array, index)

' Get 'Validators' of the page to myCollection. Dim myCollection As ValidatorCollection = Page.Validators Dim myObjArray() As Object = New Object(4){0, 0, 0, 0, 0} ' Copy the 'Collection' to 'Array'. myCollection.CopyTo(myObjArray, 0) ' Print the values in the Array. Dim myStr As String = " " Dim i As Integer For i = 0 To myCollection.Count - 1 myStr += myObjArray(i).ToString() myStr += " " Next i msgLabel.Text = myStr
// Get 'Validators' of the page to myCollection. ValidatorCollection myCollection = Page.Validators ; // Object Array. Object[] myObjArray = new Object[5] { 0, 0, 0, 0, 0 }; // Copy the 'Collection' to 'Array'. myCollection.CopyTo(myObjArray,0); // Print the values in the Array. string myStr = " "; for(int i = 0; i<myCollection.Count; i++) { myStr += myObjArray[i].ToString(); myStr += " "; } msgLabel.Text = myStr;
// Get 'Validators' of the page to myCollection. ValidatorCollection myCollection = get_Validators(); // Object Array. Object myObjArray[] = new Object[] { (Int32)0, (Int32)0, (Int32)0 , (Int32)0, (Int32)0 }; // Copy the 'Collection' to 'Array'. myCollection.CopyTo(myObjArray,0); // Print the values in the Array. String myStr = " "; for(int i = 0; i<myCollection.get_Count(); i++) { myStr += System.Convert.ToString(myObjArray.get_Item(i)); myStr += " "; } msgLabel.set_Text(myStr);

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.CopyTo メソッドを検索する場合は、下記のリンクをクリックしてください。

- ValidatorCollection.CopyTo メソッドのページへのリンク