NuGetExtensions.SearchPackagesByIdAsync 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
| SearchPackagesByIdAsync(PackageSearchResource, String, Boolean, ILogger, Int32, CancellationToken) | |
| SearchPackagesByIdAsync(SourceRepository, String, Boolean, ILogger, Int32, CancellationToken) |
SearchPackagesByIdAsync(PackageSearchResource, String, Boolean, ILogger, Int32, CancellationToken)
[System.Runtime.CompilerServices.AsyncIteratorStateMachine(typeof(Microsoft.Quantum.IQSharp.NuGetExtensions+<SearchPackagesByIdAsync>d__1))]
public static System.Collections.Generic.IAsyncEnumerable<NuGet.Protocol.Core.Types.IPackageSearchMetadata> SearchPackagesByIdAsync (this NuGet.Protocol.Core.Types.PackageSearchResource searchResource, string packageId, bool includePrerelease, NuGet.Common.ILogger? logger, int batchSize = 50, System.Threading.CancellationToken cancellationToken = default);
[<System.Runtime.CompilerServices.AsyncIteratorStateMachine(typeof(Microsoft.Quantum.IQSharp.NuGetExtensions+<SearchPackagesByIdAsync>d__1))>]
static member SearchPackagesByIdAsync : NuGet.Protocol.Core.Types.PackageSearchResource * string * bool * NuGet.Common.ILogger * int * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<NuGet.Protocol.Core.Types.IPackageSearchMetadata>
<Extension()>
Public Function SearchPackagesByIdAsync (searchResource As PackageSearchResource, packageId As String, includePrerelease As Boolean, logger As ILogger, Optional batchSize As Integer = 50, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of IPackageSearchMetadata)
Parameters
- searchResource
- NuGet.Protocol.Core.Types.PackageSearchResource
- packageId
- String
- includePrerelease
- Boolean
- logger
- NuGet.Common.ILogger
- batchSize
- Int32
- cancellationToken
- CancellationToken
Returns
- IAsyncEnumerable<NuGet.Protocol.Core.Types.IPackageSearchMetadata>
- Attributes
Applies to
SearchPackagesByIdAsync(SourceRepository, String, Boolean, ILogger, Int32, CancellationToken)
[System.Runtime.CompilerServices.AsyncIteratorStateMachine(typeof(Microsoft.Quantum.IQSharp.NuGetExtensions+<SearchPackagesByIdAsync>d__0))]
public static System.Collections.Generic.IAsyncEnumerable<NuGet.Protocol.Core.Types.IPackageSearchMetadata> SearchPackagesByIdAsync (this NuGet.Protocol.Core.Types.SourceRepository repository, string packageId, bool includePrerelease, NuGet.Common.ILogger? logger, int batchSize = 50, System.Threading.CancellationToken cancellationToken = default);
[<System.Runtime.CompilerServices.AsyncIteratorStateMachine(typeof(Microsoft.Quantum.IQSharp.NuGetExtensions+<SearchPackagesByIdAsync>d__0))>]
static member SearchPackagesByIdAsync : NuGet.Protocol.Core.Types.SourceRepository * string * bool * NuGet.Common.ILogger * int * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<NuGet.Protocol.Core.Types.IPackageSearchMetadata>
<Extension()>
Public Function SearchPackagesByIdAsync (repository As SourceRepository, packageId As String, includePrerelease As Boolean, logger As ILogger, Optional batchSize As Integer = 50, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of IPackageSearchMetadata)
Parameters
- repository
- NuGet.Protocol.Core.Types.SourceRepository
- packageId
- String
- includePrerelease
- Boolean
- logger
- NuGet.Common.ILogger
- batchSize
- Int32
- cancellationToken
- CancellationToken
Returns
- IAsyncEnumerable<NuGet.Protocol.Core.Types.IPackageSearchMetadata>
- Attributes