FormatterServices.GetTypeFromAssembly Method (Assembly, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
public 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: