次の方法で共有


HostedApplication.CreateInstance Method

Definition

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

Applies to