Package.IServiceContainer.AddService Method (Type, Object)

 

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.

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

private abstract AddService : 
        serviceType:Type *
        serviceInstance:Object -> unit
private override AddService : 
        serviceType:Type *
        serviceInstance:Object -> unit

Parameters

serviceType
Type: System.Type

Type of service to add.

serviceInstance
Type: System.Object

Service object.

Return to top
Show: