Share via


IToolboxItemDiscoveryFactory.CreateItemDiscovery(AppDomain) Method

Definition

Creates an object in the given appdomain that implements IToolboxItemDiscovery.

public:
 System::Runtime::Remoting::ObjectHandle ^ CreateItemDiscovery(AppDomain ^ domain);
public System.Runtime.Remoting.ObjectHandle CreateItemDiscovery (AppDomain domain);
abstract member CreateItemDiscovery : AppDomain -> System.Runtime.Remoting.ObjectHandle
Public Function CreateItemDiscovery (domain As AppDomain) As ObjectHandle

Parameters

domain
AppDomain

The domain in which the object should be created.

Returns

A handle to the created object.

Remarks

This method is called from the primary appdomain (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.

This method may be called on a background thread.

Applies to