ExtensionPartManager.GetCollectionAsync Method

Definition

Overloads

GetCollectionAsync<T>(CancellationToken)

Gets a dynamic collection of parts that implement a certain contract in new extensibility framework.

GetCollectionAsync<T>(Func<IEnumerable<ExtensionPartMetadata>,Boolean>, CancellationToken)

Gets a dynamic collection of parts that implement a certain contract in new extensibility framework.

GetCollectionAsync<T>(CancellationToken)

Gets a dynamic collection of parts that implement a certain contract in new extensibility framework.

public System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartCollection<T>> GetCollectionAsync<T> (System.Threading.CancellationToken cancellationToken) where T : class;
abstract member GetCollectionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartCollection<'T>> (requires 'T : null)
override this.GetCollectionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartCollection<'T>> (requires 'T : null)
Public Function GetCollectionAsync(Of T As Class) (cancellationToken As CancellationToken) As Task(Of IExtensionPartCollection(Of T))

Type Parameters

T

Parameters

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

an enumeration of proxies that implement contract interface.

Implements

Applies to

GetCollectionAsync<T>(Func<IEnumerable<ExtensionPartMetadata>,Boolean>, CancellationToken)

Gets a dynamic collection of parts that implement a certain contract in new extensibility framework.

public System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartCollection<T>> GetCollectionAsync<T> (Func<System.Collections.Generic.IEnumerable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartMetadata>,bool> filterCallback, System.Threading.CancellationToken cancellationToken) where T : class;
abstract member GetCollectionAsync : Func<seq<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartMetadata>, bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartCollection<'T>> (requires 'T : null)
override this.GetCollectionAsync : Func<seq<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartMetadata>, bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartCollection<'T>> (requires 'T : null)
Public Function GetCollectionAsync(Of T As Class) (filterCallback As Func(Of IEnumerable(Of ExtensionPartMetadata), Boolean), cancellationToken As CancellationToken) As Task(Of IExtensionPartCollection(Of T))

Type Parameters

T

Parameters

filterCallback
Func<IEnumerable<ExtensionPartMetadata>,Boolean>

Filtering condition based on metadata in extension.json.

cancellationToken
CancellationToken

Cancellation token to monitor.

Returns

an enumeration of proxies that implement contract interface.

Implements

Applies to