Share via


IToolboxItemDiscoveryFactory.CreateItemDiscovery Method

Creates an object in the given application domain that implements IToolboxItemDiscovery.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntax

'Declaration
Function CreateItemDiscovery ( _
    domain As AppDomain _
) As ObjectHandle
ObjectHandle CreateItemDiscovery(
    AppDomain domain
)
ObjectHandle^ CreateItemDiscovery(
    AppDomain^ domain
)
abstract CreateItemDiscovery : 
        domain:AppDomain -> ObjectHandle
function CreateItemDiscovery(
    domain : AppDomain
) : ObjectHandle

Parameters

  • domain
    Type: AppDomain

    Domain in which the object should be created.

Return Value

Type: ObjectHandle
A handle to the created object.

Remarks

This method is called from the primary application domain (which is different from the domain passed as an argument). The object handle will not be unwrapped in any domain other than the one it was created in, so the object does not need to be serializable or derive from MarshalByRefObject.

.NET Framework Security

See Also

Reference

IToolboxItemDiscoveryFactory Interface

Microsoft.VisualStudio.Shell Namespace