HttpStaticObjectsCollection.CopyTo メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HttpStaticObjectsCollection.CopyTo メソッドの意味・解説 

HttpStaticObjectsCollection.CopyTo メソッド

HttpStaticObjectsCollectionメンバ配列コピーします

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

使用例使用例

必要なサイズ新しObject 配列作成し既存の StaticObjects コレクションをその配列コピーする例を次に示します

' Find the number of members in the StaticObjects collection.
Dim ObjCount As Integer
 = Application.StaticObjects.Count
' Create an array of the same size.
Dim MyObjArray(ObjCount) As Object
' Copy the entire collection into the array.
Application.StaticObjects.CopyTo(MyObjArray, 0)

// Find the number of members in the StaticObjects collection.
int ObjCount = Application.StaticObjects.Count;
// Create an array of the same size.
Object[] MyObjArray = new Object[ObjCount];
// Copy the entire collection into the array.
Application.StaticObjects.CopyTo(MyObjArray, 0);

// Find the number of members in the StaticObjects collection.
int objCount = get_Application().get_StaticObjects().get_Count();
// Create an array of the same size.
Array myObjArray =
    Array.CreateInstance(Type.GetType("System.Object"), objCount);
// Copy the entire collection into the array.
get_Application().get_StaticObjects().CopyTo(myObjArray,0);
// Find the number of members in the StaticObjects collection.
var objCount : int = Application.StaticObjects.Count
// Create an array of the same size.
var myObjArray : System.Array = System.Array.CreateInstance(System.Object,
 objCount)
// Copy the entire collection into the array.
Application.StaticObjects.CopyTo(myObjArray, 0)

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HttpStaticObjectsCollection クラス
HttpStaticObjectsCollection メンバ
System.Web 名前空間



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

辞書ショートカット

すべての辞書の索引

HttpStaticObjectsCollection.CopyTo メソッドのお隣キーワード
検索ランキング

   

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



HttpStaticObjectsCollection.CopyTo メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS