LanguageService::GetService Method (Type^)

 

Returns a service object that can be cast to a specific interface.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
Object^ GetService(
	Type^ serviceType
)

Parameters

serviceType
Type: System::Type^

[in] The GUID of the service to get.

Return Value

Type: System::Object^

If successful, returns an object that can be cast to a desired interface; otherwise, returns a null value (the service does not exist or is not available).

A service proffers at least one interface and other, related interfaces can be obtained from either the service or another interface.

Return to top
Show: