LanguageService.GetService(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a service object that can be cast to a specific interface.
public:
System::Object ^ GetService(Type ^ serviceType);
public:
Platform::Object ^ GetService(Platform::Type ^ serviceType);
public object GetService (Type serviceType);
member this.GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object
Parameters
- serviceType
- Type
[in] The GUID of the service to get.
Returns
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).
Remarks
A service proffers at least one interface and other, related interfaces can be obtained from either the service or another interface.