Type.GetTypeArray メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim args As Object() Dim returnValue As Type() returnValue = Type.GetTypeArray(args)
戻り値
args 内の対応する要素の型を表す Type オブジェクトの配列。


要求された型がパブリックではなく、呼び出し元に現在のアセンブリ外の非パブリック オブジェクトに対する ReflectionPermission がない場合、このメソッドは結果配列の対応する要素に対して null 参照 (Visual Basic では Nothing) を返します。

Dim myObject(2) As Object myObject(0) = 66 myObject(1) = "puri" myObject(2) = 33.33 ' Get the array of 'Type' class objects. Dim myTypeArray As Type() = Type.GetTypeArray(myObject) Console.WriteLine("Full names of the 'Type' objects in the array are:") Dim h As Integer For h = 0 To myTypeArray.Length - 1 Console.WriteLine(myTypeArray(h).FullName) Next h
Object[] myObject = new Object[3]; myObject[0] = 66; myObject[1] = "puri"; myObject[2] = 33.33; // Get the array of 'Type' class objects. Type[] myTypeArray = Type.GetTypeArray(myObject); Console.WriteLine("Full names of the 'Type' objects in the array are:"); for(int h = 0; h < myTypeArray.Length ; h++) { Console.WriteLine(myTypeArray[h].FullName); }
array<Object^>^myObject = gcnew array<Object^>(3); myObject[ 0 ] = 66; myObject[ 1 ] = "puri"; myObject[ 2 ] = 33.33; // Get the array of 'Type' class objects. array<Type^>^myTypeArray = Type::GetTypeArray( myObject ); Console::WriteLine( "Full names of the 'Type' objects in the array are:" ); for ( int h = 0; h < myTypeArray->Length; h++ ) { Console::WriteLine( myTypeArray[ h ]->FullName ); }
Object myObject[] = new Object[3]; myObject.set_Item(0, (System.Int32)66); myObject.set_Item(1, "puri"); myObject.set_Item(2, (System.Double)33.33); // Get the array of 'Type' class objects. Type myTypeArray[] = Type.GetTypeArray(myObject); Console.WriteLine("Full names of the 'Type' objects in the array are:"); for (int h = 0; h < myTypeArray.get_Length(); h++) { Console.WriteLine(myTypeArray[h].get_FullName()); }

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


Weblioに収録されているすべての辞書からType.GetTypeArray メソッドを検索する場合は、下記のリンクをクリックしてください。

- Type.GetTypeArray メソッドのページへのリンク