ICommonEditorAssetService.FindAsset<T> Method

Definition

Produces common language service asset.

C#
public T FindAsset<T>(Predicate<Microsoft.VisualStudio.Editor.ICommonEditorAssetMetadata> isMatch = default) where T : class;

Type Parameters

T

The type of language service asset to produce. Can be ITaggerProvider, IViewTaggerProvider, or ICompletionSource. Use isMatch to find a tagger of the desired type.

Parameters

isMatch
Predicate<ICommonEditorAssetMetadata>

Returns true if the ICommonEditorAssetMetadata matches the desired feature.

Returns

T

A feature of T or null if unknown.

Remarks

This method supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to

Product Versions
Visual Studio SDK 2017, 2019, 2022