| ServiceProviderExtensionsAsVsServiceProvider Method |
Namespace: Tvl.VisualStudio.ShellAssembly: Tvl.VisualStudio.ShellServices.10 (in Tvl.VisualStudio.ShellServices.10.dll) Version: 2.0.0.0
Syntax public static SVsServiceProvider AsVsServiceProvider(
this IServiceProvider serviceProvider
)
<ExtensionAttribute>
Public Shared Function AsVsServiceProvider (
serviceProvider As IServiceProvider
) As SVsServiceProvider
public:
[ExtensionAttribute]
static SVsServiceProvider^ AsVsServiceProvider(
IServiceProvider^ serviceProvider
)
static member AsVsServiceProvider :
serviceProvider : IServiceProvider -> SVsServiceProvider
Parameters
- serviceProvider
- Type: SystemIServiceProvider
The service provider.
Return Value
Type:
SVsServiceProviderAn
SVsServiceProvider implementation wrapping the specified service provider.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IServiceProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks
This method can be used to access the extension methods defined in
VsServiceProviderExtensions
to easily access global IDE service instances.
See Also