HostedApplication.CreateInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateInstance(String, String, WorkItem) |
Method used to help create Instances of applications / objects |
CreateInstance(String, String) |
Obsolete.
Method used to help create Instances of applications / objects |
CreateInstance(String, String, WorkItem)
Method used to help create Instances of applications / objects
protected:
virtual System::Object ^ CreateInstance(System::String ^ assemblyUri, System::String ^ assemblyType, Microsoft::Practices::CompositeUI::WorkItem ^ workItem);
protected virtual object CreateInstance (string assemblyUri, string assemblyType, Microsoft.Practices.CompositeUI.WorkItem workItem);
abstract member CreateInstance : string * string * Microsoft.Practices.CompositeUI.WorkItem -> obj
override this.CreateInstance : string * string * Microsoft.Practices.CompositeUI.WorkItem -> obj
Protected Overridable Function CreateInstance (assemblyUri As String, assemblyType As String, workItem As WorkItem) As Object
Parameters
- assemblyUri
- String
Uri to the assembly.
- assemblyType
- String
The type for the application / class.
- workItem
- WorkItem
null to avoid using CAB's module loader service on loaded assembly
Returns
Returns the object created.
Applies to
CreateInstance(String, String)
Caution
This method has been deprecated, use CreateInstance(string, string, WorkItem)
Method used to help create Instances of applications / objects
protected:
virtual System::Object ^ CreateInstance(System::String ^ assemblyUri, System::String ^ assemblyType);
[System.Obsolete("This method has been deprecated, use CreateInstance(string, string, WorkItem)")]
protected virtual object CreateInstance (string assemblyUri, string assemblyType);
[<System.Obsolete("This method has been deprecated, use CreateInstance(string, string, WorkItem)")>]
abstract member CreateInstance : string * string -> obj
override this.CreateInstance : string * string -> obj
Protected Overridable Function CreateInstance (assemblyUri As String, assemblyType As String) As Object
Parameters
- assemblyUri
- String
Uri to the assembly.
- assemblyType
- String
The type for the application / class.
Returns
Returns the object created.
- Attributes