FormatterServices::GetTypeFromAssembly Method (Assembly^, String^)
.NET Framework (current version)
Namespace:
System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Return to top
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] static Type^ GetTypeFromAssembly( Assembly^ assem, String^ name )
Parameters
- assem
-
Type:
System.Reflection::Assembly^
The assembly where you want to look up the object.
- name
-
Type:
System::String^
The name of the object.
| Exception | Condition |
|---|---|
| ArgumentNullException | The assem parameter is null. |
| SecurityException | The caller does not have the required permission. |
SecurityPermissionReflectionPermission
For providing serialization services. Associated enumeration: SecurityPermissionFlag::SerializationFormatter, SecurityAction::LinkDemand.
For extraction of reflection information on members of a type that are not visible. Associated enumeration: ReflectionPermissionFlag::TypeInformation.
.NET Framework
Available since 1.1
Available since 1.1
Show: