Export (0) Print
Expand All

Package.IServiceContainer.AddService Method (Type, Object, Boolean)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Adds the given service to the VSPackage's service container.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

void IServiceContainer.AddService(
	Type serviceType,
	Object serviceInstance,
	bool promote
)

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.

Implements

IServiceContainer.AddService(Type, Object, Boolean)

Community Additions

ADD
Show:
© 2014 Microsoft