Package.IServiceContainer.AddService Method (Type, ServiceCreatorCallback)
Visual Studio 2015
This API supports the product infrastructure and is not intended to be used directly from your code.
Adds the given service to the VSPackage's service container.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Private Sub AddService ( serviceType As Type, callback As ServiceCreatorCallback ) Implements IServiceContainer.AddService
Parameters
- serviceType
-
Type:
System.Type
Type of service to add.
- callback
-
Type:
System.ComponentModel.Design.ServiceCreatorCallback
ServiceCreatorCallback that can create the service. This allows a service to be declared as available, but delays creation of the object until the service is requested.
Show: