指定された Assembly にある、指定したオブジェクトの Type を検索します。
Public Shared Function GetTypeFromAssembly( _
ByVal assem As Assembly, _ ByVal name As String _) As Type
[C#]
public static Type GetTypeFromAssembly(Assemblyassem,stringname);
[C++]
public: static Type* GetTypeFromAssembly(Assembly* assem,String* name);
[JScript]
public static function GetTypeFromAssembly(
assem : Assembly,name : String) : Type;
パラメータ
- assem
オブジェクトを検索する対象のアセンブリ。 - name
オブジェクトの名前。
戻り値
オブジェクトの Type 。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | assem パラメータが null 参照 (Visual Basic では Nothing) です。 |
SecurityException | 呼び出し元に、必要なアクセス許可がありません。 |
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
.NET Framework セキュリティ:
- SecurityPermission (シリアル化サービスを提供するために必要なアクセス許可) SecurityPermissionFlag.SerializationFormatter 、 SecurityAction.LinkDemand (関連する列挙体)
- ReflectionPermission (参照できない型のメンバに対するリフレクション情報を抽出するために必要なアクセス許可) ReflectionPermissionFlag.TypeInformation (関連する列挙体)
参照
FormatterServices クラス | FormatterServices メンバ | System.Runtime.Serialization 名前空間 | Assembly.GetType