 | VishnuAssemblyLoaderDynamicLoadObjectOfTypeFromAssembly method |
Dynamically loads an object of the transferred type from the specified assembly.
All assemblies referenced by the specified assembly are additionally
also searched for in assemblyDirectories.
Namespace: Vishnu.InterchangeAssembly: Vishnu.Interchange (in Vishnu.Interchange.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntaxpublic Object? DynamicLoadObjectOfTypeFromAssembly(
string assemblyPathName,
Type objectType,
bool force = false
)
Public Function DynamicLoadObjectOfTypeFromAssembly (
assemblyPathName As String,
objectType As Type,
Optional force As Boolean = false
) As Object
public:
Object^ DynamicLoadObjectOfTypeFromAssembly(
String^ assemblyPathName,
Type^ objectType,
bool force = false
)
member DynamicLoadObjectOfTypeFromAssembly :
assemblyPathName : string *
objectType : Type *
?force : bool
(* Defaults:
let _force = defaultArg force false
*)
-> Object
Parameters
- assemblyPathName String
- The assembly that publishes the object to be loaded.
- objectType Type
- The type of the object to be instantiated from the assembly
- force Boolean (Optional)
- Optional - if true, the assembly is not taken from the cache, default: false
Return value
ObjectInstance from the passed assembly of the passed type or null
See also