PackageUtilities.ProfferService<TService, TImpl> Method
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Public Shared Sub ProfferService(Of TService, TImpl As New) ( _
serviceContainer As IServiceContainer _
)
public static void ProfferService<TService, TImpl>(
IServiceContainer serviceContainer
)
where TImpl : new()
Type Parameters
- TService
- TImpl
Parameters
- serviceContainer
Type: System.ComponentModel.Design.IServiceContainer
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.