Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the global service provider for the calling thread.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Public Shared ReadOnly Property GlobalProvider As ServiceProvider
public static ServiceProvider GlobalProvider { get; }
public:
static property ServiceProvider^ GlobalProvider {
ServiceProvider^ get ();
}
static member GlobalProvider : ServiceProvider
static function get GlobalProvider () : ServiceProvider
Property Value
Type: Microsoft.VisualStudio.Shell.ServiceProvider
The global service provider.
Remarks
The global service provider is set by calling CreateFromSetSite.If this method has not been called, an attempt is made to retrieve the a service provider from the OLE message filter. If no suitable service provider can be found on the calling thread, then a new, empty ServiceProvider is returned.
.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.