PackageUtilities::ProfferService<TService, TImpl> Method (IServiceContainer^)

 

Proffers to a service container the service implemented by the specified type.

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

public:
generic<typename TService, typename TImpl>
where TImpl : gcnew()
static void ProfferService(
	IServiceContainer^ serviceContainer
)

Parameters

serviceContainer
Type: System.ComponentModel.Design::IServiceContainer^

The service container to proffer to.

Type Parameters

TService

The type of service.

TImpl

The type that implements < TService.

Return to top
Show: