ICommonEditorAssetService.FindAsset<T> Method

Definition

Produces common language service asset.

public T FindAsset<T> (Predicate<Microsoft.VisualStudio.Editor.ICommonEditorAssetMetadata> isMatch = default) where T : class;
abstract member FindAsset : Predicate<Microsoft.VisualStudio.Editor.ICommonEditorAssetMetadata> -> 'T (requires 'T : null)
Public Function FindAsset(Of T As Class) (Optional isMatch As Predicate(Of ICommonEditorAssetMetadata) = Nothing) As T

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