Partilhar via


LanguageService.GetService(Type) Method

Definition

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.

Applies to