FormatterServices.GetTypeFromAssembly(Assembly, String) FormatterServices.GetTypeFromAssembly(Assembly, String) FormatterServices.GetTypeFromAssembly(Assembly, String) FormatterServices.GetTypeFromAssembly(Assembly, String) Method

Definition

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

public:
 static Type ^ GetTypeFromAssembly(System::Reflection::Assembly ^ assem, System::String ^ name);
[System.Security.SecurityCritical]
public static Type GetTypeFromAssembly (System.Reflection.Assembly assem, string name);
static member GetTypeFromAssembly : System.Reflection.Assembly * string -> Type
Public Shared Function GetTypeFromAssembly (assem As Assembly, name As String) As Type

Parameters

assem
Assembly Assembly Assembly Assembly

The assembly where you want to look up the object.

name
String String String String

The name of the object.

Returns

The Type of the named object.

Exceptions

The caller does not have the required permission.

Security

SecurityPermission
For providing serialization services. Associated enumeration: SerializationFormatter, LinkDemand.

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

Applies to

See also