Export (0) Print
Expand All

Assembly Methods

The Assembly type exposes the following members.

  Name Description
Public method CreateInstance(String) Locates the specified type from this assembly and creates an instance of it using the system activator, using case-sensitive search.
Public method CreateInstance(String, Boolean) Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search.
Public method CreateInstance(String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[]) Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search and having the specified culture, arguments, and binding and activation attributes.
Public method Static member CreateQualifiedName Creates the name of a type qualified by the display name of its assembly.
Public method Equals Determines whether this assembly and the specified object are equal. (Overrides Object.Equals(Object).)

In XNA Framework 3.0, this member is inherited from Object.Equals(Object).


In Portable Class Library Portable Class Library, this member is inherited from Object.Equals(Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetAssembly Gets the currently loaded assembly in which the specified class is defined.
Public method Static member GetCallingAssembly Returns the Assembly of the method that invoked the currently executing method.
Public method GetCustomAttributes(Boolean) Gets all the custom attributes for this assembly.
Public method GetCustomAttributes(Type, Boolean) Gets the custom attributes for this assembly as specified by type.
Public method GetCustomAttributesData Returns information about the attributes that have been applied to the current Assembly, expressed as CustomAttributeData objects.
Public method Static member GetEntryAssembly Gets the process executable in the default application domain. In other application domains, this is the first executable that was executed by AppDomain.ExecuteAssembly.
Public method Static member GetExecutingAssembly Gets the assembly that contains the code that is currently executing.
Public method GetExportedTypes Gets the public types defined in this assembly that are visible outside the assembly.
Public method GetFile Gets a FileStream for the specified file in the file table of the manifest of this assembly.
Public method GetFiles() Gets the files in the file table of an assembly manifest.
Public method GetFiles(Boolean) Gets the files in the file table of an assembly manifest, specifying whether to include resource modules.
Public method GetHashCode Returns the hash code for this instance. (Overrides Object.GetHashCode().)

In XNA Framework 3.0, this member is inherited from Object.GetHashCode().


In Portable Class Library Portable Class Library, this member is inherited from Object.GetHashCode().
Public method GetLoadedModules() Gets all the loaded modules that are part of this assembly.
Public method GetLoadedModules(Boolean) Gets all the loaded modules that are part of this assembly, specifying whether to include resource modules.
Public method GetManifestResourceInfo Returns information about how the given resource has been persisted.
Public method GetManifestResourceNames Returns the names of all the resources in this assembly.
Public method GetManifestResourceStream(String) Loads the specified manifest resource from this assembly.
Public method GetManifestResourceStream(Type, String) Loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly.
Public method GetModule Gets the specified module in this assembly.
Public method GetModules() Gets all the modules that are part of this assembly.
Public method GetModules(Boolean) Gets all the modules that are part of this assembly, specifying whether to include resource modules.
Public method GetName() Gets an AssemblyName for this assembly.
Public method GetName(Boolean) Gets an AssemblyName for this assembly, setting the codebase as specified by copiedName.
Public method GetObjectData Gets serialization information with all of the data needed to reinstantiate this assembly.
Public method GetReferencedAssemblies Gets the AssemblyName objects for all the assemblies referenced by this assembly.
Public method GetSatelliteAssembly(CultureInfo) Gets the satellite assembly for the specified culture.
Public method GetSatelliteAssembly(CultureInfo, Version) Gets the specified version of the satellite assembly for the specified culture.
Public method GetType() Gets the Type of the current instance. (Inherited from Object.)
Public method GetType(String) Gets the Type object with the specified name in the assembly instance.
Public method GetType(String, Boolean) Gets the Type object with the specified name in the assembly instance and optionally throws an exception if the type is not found.
Public method GetType(String, Boolean, Boolean) Gets the Type object with the specified name in the assembly instance, with the options of ignoring the case, and of throwing an exception if the type is not found.
Public method GetTypes Gets the types defined in this assembly.
Public method IsDefined Indicates whether or not a specified attribute has been applied to the assembly.
Public method Static member Load(AssemblyName) Loads an assembly given its AssemblyName.
Public method Static member Load(Byte[]) Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the application domain of the caller.
Public method Static member Load(String) Loads an assembly given the long form of its name.
Public method Static member Load(AssemblyName, Evidence) Obsolete. Loads an assembly given its AssemblyName. The assembly is loaded into the domain of the caller using the supplied evidence.
Public method Static member Load(Byte[], Byte[]) Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols for the assembly. The assembly is loaded into the application domain of the caller.
Public method Static member Load(String, Evidence) Obsolete. Loads an assembly given its display name, loading the assembly into the domain of the caller using the supplied evidence.
Public method Static member Load(Byte[], Byte[], Evidence) Obsolete. Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and evidence for the assembly. The assembly is loaded into the application domain of the caller.
Public method Static member Load(Byte[], Byte[], SecurityContextSource) Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and specifying the source for the security context. The assembly is loaded into the application domain of the caller.
Public method Static member LoadFile(String) Loads the contents of an assembly file on the specified path.
Public method Static member LoadFile(String, Evidence) Obsolete. Loads an assembly given its path, loading the assembly into the domain of the caller using the supplied evidence.
Public method Static member LoadFrom(String) Loads an assembly given its file name or path.
Public method Static member LoadFrom(String, Evidence) Obsolete. Loads an assembly given its file name or path and supplying security evidence.
Public method Static member LoadFrom(String, Byte[], AssemblyHashAlgorithm) Loads an assembly given its file name or path, hash value, and hash algorithm.
Public method Static member LoadFrom(String, Evidence, Byte[], AssemblyHashAlgorithm) Obsolete. Loads an assembly given its file name or path, security evidence, hash value, and hash algorithm.
Public method LoadModule(String, Byte[]) Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file.
Public method LoadModule(String, Byte[], Byte[]) Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file. The raw bytes representing the symbols for the module are also loaded.
Public method Static member LoadWithPartialName(String) Obsolete. Loads an assembly from the application directory or from the global assembly cache using a partial name.
Public method Static member LoadWithPartialName(String, Evidence) Obsolete. Loads an assembly from the application directory or from the global assembly cache using a partial name. The assembly is loaded into the domain of the caller using the supplied evidence.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member ReflectionOnlyLoad(Byte[]) Loads the assembly from a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the reflection-only context of the caller's application domain.
Public method Static member ReflectionOnlyLoad(String) Loads an assembly into the reflection-only context, given its display name.
Public method Static member ReflectionOnlyLoadFrom Loads an assembly into the reflection-only context, given its path.
Public method ToString Returns the full name of the assembly, also known as the display name. (Overrides Object.ToString().)
Public method Static member UnsafeLoadFrom Loads an assembly into the load-from context, bypassing some security checks.
Top

  Name Description
Public Extension Method GetCustomAttribute(Type) Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttribute<T>() Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes() Overloaded. Retrieves a collection of custom attributes that are applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes(Type) Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes<T>() Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method IsDefined Indicates whether custom attributes of a specified type are applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Top

  Name Description
Explicit interface implemetation Private method _Assembly.GetType Returns the type of the current instance.
Top
Show:
© 2014 Microsoft