Click or drag to resize

FrameworkContextLoadAssembly Method

Load an assembly into the current AppDomain, treating any matching short name as a framework assembly for the targeted framework (non-matching names or display names are loaded normally).

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public LoadedAssembly LoadAssembly(
	string assemblyName,
	string hintPath,
	IEnumerable<string> alternatePaths,
	out string errorMessage,
	Project project,
	Reference reference,
	bool frameworkOnly = false
)

Parameters

assemblyName
Type: SystemString
The display name, short name, or file name of the assembly.
hintPath
Type: SystemString
Optional full file specification of the assembly.
alternatePaths
Type: System.Collections.GenericIEnumerableString
Optional alternate search paths for the assembly.
errorMessage
Type: SystemString
Returns an error message string if there was one.
project
Type: Nova.CodeDOMProject
The Project associated with the assembly.
reference
Type: Nova.CodeDOMReference
The Reference object associated with the assembly.
frameworkOnly (Optional)
Type: SystemBoolean
Only load the assembly if it's a member of the current framework, otherwise return null.

Return Value

Type: LoadedAssembly
The LoadedAssembly object.
See Also