System.ComponentModel.Design.ServiceCreatorCallback Delegate

Provides a callback mechanism that can create an instance of a service on demand.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public delegate object ServiceCreatorCallback (IServiceContainer container, Type serviceType)

Parameters

container
Documentation for this section has not yet been entered.
serviceType
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

System.ComponentModel.Design.ServiceCreatorCallback provides a mechanism to publish services that you can request to have created when needed, rather than the service being created immediately when the designer loads. You can use a callback function if the service is not essential and may not be used. A service published by using a System.ComponentModel.Design.ServiceCreatorCallback does not use as many additional resources if it is not requested and created. To use a callback function to publish your service, pass a System.ComponentModel.Design.ServiceCreatorCallback to the IServiceContainer.AddService(Type, object) method of an System.ComponentModel.Design.IServiceContainer.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0