Udostępnij za pośrednictwem


HostLanguageServices Class

Definition

Per language services provided by the host environment.

public ref class HostLanguageServices abstract
public abstract class HostLanguageServices
type HostLanguageServices = class
Public MustInherit Class HostLanguageServices
Inheritance
HostLanguageServices

Constructors

HostLanguageServices()

Properties

Language

The name of the language

LanguageServices

Immutable snapshot of the host services. Preferable to use instead of this HostLanguageServices when possible.

WorkspaceServices

The HostWorkspaceServices that originated this language service.

Methods

GetRequiredService<TLanguageService>()

Gets a language specific service provided by the host identified by the service type. If the host does not provide the service, this method returns throws InvalidOperationException.

GetService<TLanguageService>()

Gets a language specific service provided by the host identified by the service type. If the host does not provide the service, this method returns null.

Applies to