The Destroy
method unloads the hosting control. The Create(assemblyLocation,
assemblyName)
method loads the specified file, and creates the giving type.
If Destroy method is called, the
IsCreated property returns
NETHostType_exNETHostNothing, which indicates no object has been created
There are three ways of loading/creating a manifest/component/assembly as
listed:
AssemblyLocation property, loads the first public, browseable control
found in the specified location. If there are more public, browseable
controls in the assembly, you can use the AssemblyName
or AssemblyQualifiedName
property to specify the fully qualified name of the type to be hosted.
AssemblyQualifiedName
property, loads and creates the object based on the assembly-qualified name of the type, which includes the name of the assembly from which this
type object was loaded. Sample: "System.Windows.Forms.ListView, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"