FormatterServices::GetTypeFromAssembly Method (Assembly^, String^)

 

Looks up the Type of the specified object in the provided Assembly.

Namespace:   System.Runtime.Serialization
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.

Return Value

Type: System::Type^

The Type of the named object.

Exception Condition
ArgumentNullException

The assem parameter is null.

SecurityException

The caller does not have the required permission.

SecurityPermission

For providing serialization services. Associated enumeration: SecurityPermissionFlag::SerializationFormatter, SecurityAction::LinkDemand.

ReflectionPermission

For extraction of reflection information on members of a type that are not visible. Associated enumeration: ReflectionPermissionFlag::TypeInformation.

.NET Framework
Available since 1.1
Return to top
Show: