IExtensionPartManager.GetCollectionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetCollectionAsync<TContract>(CancellationToken) |
Gets a dynamic collection of parts that implement a certain contract in new extensibility framework. |
GetCollectionAsync<TContract>(Func<IEnumerable<ExtensionPartMetadata>,Boolean>, CancellationToken) |
Gets a dynamic collection of parts that implement a certain contract in new extensibility framework. |
GetCollectionAsync<TContract>(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<TContract>> GetCollectionAsync<TContract> (System.Threading.CancellationToken cancellationToken) where TContract : class;
abstract member GetCollectionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Internal.VisualStudio.Extensibility.Framework.IExtensionPartCollection<'Contract>> (requires 'Contract : null)
Public Function GetCollectionAsync(Of TContract As Class) (cancellationToken As CancellationToken) As Task(Of IExtensionPartCollection(Of TContract))
Type Parameters
- TContract
RPC contract interface type.
Parameters
- cancellationToken
- CancellationToken
Cancellation token to monitor.
Returns
an enumeration of proxies that implement contract interface.
Applies to
GetCollectionAsync<TContract>(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<TContract>> GetCollectionAsync<TContract> (Func<System.Collections.Generic.IEnumerable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartMetadata>,bool> filterCallback, System.Threading.CancellationToken cancellationToken) where TContract : 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<'Contract>> (requires 'Contract : null)
Public Function GetCollectionAsync(Of TContract As Class) (filterCallback As Func(Of IEnumerable(Of ExtensionPartMetadata), Boolean), cancellationToken As CancellationToken) As Task(Of IExtensionPartCollection(Of TContract))
Type Parameters
- TContract
RPC contract interface type.
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.