Compartir a través de


HostedApplication.CreateInstance Method (String, String, WorkItem)

Method used to help create Instances of applications / objects

Namespace: Microsoft.Uii.Csr
Assembly: Microsoft.Uii.Csr.Core (in Microsoft.Uii.Csr.Core.dll)

Usage

'Usage
Dim assemblyUri As String
Dim assemblyType As String
Dim workItem As WorkItem
Dim returnValue As Object

returnValue = Me.CreateInstance(assemblyUri, assemblyType, workItem)

Syntax

'Declaration
Protected Overridable Function CreateInstance ( _
    assemblyUri As String, _
    assemblyType As String, _
    workItem As WorkItem _
) As Object
protected virtual Object CreateInstance (
    string assemblyUri,
    string assemblyType,
    WorkItem workItem
)
protected:
virtual Object^ CreateInstance (
    String^ assemblyUri, 
    String^ assemblyType, 
    WorkItem^ workItem
)
protected Object CreateInstance (
    String assemblyUri, 
    String assemblyType, 
    WorkItem workItem
)
protected function CreateInstance (
    assemblyUri : String, 
    assemblyType : String, 
    workItem : WorkItem
) : Object

Parameters

  • assemblyUri
    Uri to the assembly.
  • assemblyType
    The type for the application / class.
  • workItem
    null to avoid using CAB's module loader service on loaded assembly

Return Value

Returns the object created.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

HostedApplication Class
HostedApplication Members
Microsoft.Uii.Csr Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.