GlobalObjectProvider::GetService Method (Type^)

 

Gets the requested service.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

protected:
Object^ GetService(
	Type^ serviceType
)

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.

Return to top
Show: