Gets the service provider from the shell.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Protected ReadOnly Property ServiceProvider As IServiceProvider
'使用
Dim value As IServiceProvider
value = Me.ServiceProvider
protected IServiceProvider ServiceProvider { get; }
protected:
property IServiceProvider^ ServiceProvider {
IServiceProvider^ get ();
}
protected function get ServiceProvider () : IServiceProvider
Property Value
Type: System.IServiceProvider
The service provider.
Remarks
This property implements the IVsUserData interface.
Permissions
- 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.