IVsService<T> Interface

Definition

Provides access to a Visual Studio proffered service.

public interface IVsService<T> where T : class
type IVsService<'T (requires 'T : null)> = interface
Public Interface IVsService(Of T)

Type Parameters

T

The service identity and interface of the Visual Studio service. When the service identity and interface are distinct types, use IVsService<TService,TInterface> instead.

Derived

Remarks

This service acquiring interface is typically acquired via a MEF import attribute. For example: [Import] IVsService<IVsRunningDocumentTable> rdt;

Methods

GetValueAsync(CancellationToken)

Gets an instance of the T service.

GetValueOrNullAsync(CancellationToken)

Gets an instance of the T service.

Applies to