Package::IServiceContainer::AddService Method (Type^, Object^, Boolean)
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: virtual void AddService( Type^ serviceType, Object^ serviceInstance, bool promote ) sealed = IServiceContainer::AddService
Parameters
- serviceType
-
Type:
System::Type^
Type of service to add.
- serviceInstance
-
Type:
System::Object^
Service object.
- promote
-
Type:
System::Boolean
true if this service should be added to any parent service containers; otherwise, false.
Show: