Gets the assembly in which the specified class is defined.
[Visual Basic] Public Shared Function GetAssembly( _ ByVal type As Type _ ) As Assembly [C#] public static Assembly GetAssembly( Type type ); [C++] public: static Assembly* GetAssembly( Type* type ); [JScript] public static function GetAssembly( type : Type ) : Assembly;
The assembly in which the specified class is defined.
Exception Type | Condition |
---|---|
ArgumentNullException | if type is a null reference (in Visual Basic Nothing). |
Assembly Class | Assembly Members | System.Reflection Namespace