GlobalObjectProvider::GetService Method (Type^)
Visual Studio 2015
Gets the requested service.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Parameters
- serviceType
-
Type:
System::Type^
The Type of service to retrieve
Return Value
Type: System::Object^An Object that represents an instance of the requested service; otherwise, null if no such service exists.
| Exception | Condition |
|---|---|
| ArgumentNullException | serviceType is null. |
The default implementation of the GetService method delegates the request to the IServiceProvider that is set by the M:Microsoft.VisualStudio.Shell.Design.GlobalObjectProvider.Microsoft.VisualStudio.OLE.Interop.IObjectWithSite.SetSite(System.Object) method.
Show: