Devesprit.Scripter

ReferenceAssemblies..::..AddByFullName Method

This method receives the FullName of an Assembly and adds it to Reference lists if the assembly can be found.

Namespace:  Devesprit.Scripter.Compiler
Assembly:  Devesprit Scripter (in Devesprit Scripter.dll)

Syntax


public void AddByFullName(
	string fullName,
	bool searchInAppDir,
	bool searchInGac,
	List<string> searchInDirsList,
	bool searchSubDirs,
	bool errorIfNotFound
)
Public Sub AddByFullName ( _
	fullName As String, _
	searchInAppDir As Boolean, _
	searchInGac As Boolean, _
	searchInDirsList As List(Of String), _
	searchSubDirs As Boolean, _
	errorIfNotFound As Boolean _
)
public:
void AddByFullName(
	String^ fullName, 
	bool^ searchInAppDir, 
	bool^ searchInGac, 
	List<String^>^ searchInDirsList, 
	bool^ searchSubDirs, 
	bool^ errorIfNotFound
)

Parameters

fullName
Type: String
The FullName of the intended Assembly (e.g. System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
searchInAppDir
Type: Boolean
If the value is set true, all assemblies present in the execution path of the current process will be checked.
searchInGac
Type: Boolean
If the value is set true, all assemblies present in the GAC of the system will be checked.
searchInDirsList
Type: List<(Of <(<'String>)>)>
Is a string list containing search Paths for finding the intended Assembly.
searchSubDirs
Type: Boolean
If the value is set true, all assemblies present in Sub Directories will be checked.
errorIfNotFound
Type: Boolean
If the value is set true, an Exception will be generated if the intended Assembly cannot be found.

Exceptions


See Also


Devesprit.Scripter.Compiler Namespace