Udostępnij za pośrednictwem


IBrokeredServiceManifest.GetAvailableVersionsAsync Method

Definition

Gets the collection of versions available for the specified service from an IServiceBroker.

public:
 System::Threading::Tasks::ValueTask<System::Collections::Immutable::ImmutableSortedSet<Version ^> ^> GetAvailableVersionsAsync(System::String ^ serviceName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask<System.Collections.Immutable.ImmutableSortedSet<Version?>> GetAvailableVersionsAsync (string serviceName, System.Threading.CancellationToken cancellationToken);
abstract member GetAvailableVersionsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Collections.Immutable.ImmutableSortedSet<Version>>
Public Function GetAvailableVersionsAsync (serviceName As String, cancellationToken As CancellationToken) As ValueTask(Of ImmutableSortedSet(Of Version))

Parameters

serviceName
String

The Name from the ServiceMoniker for the service to get information about.

cancellationToken
CancellationToken

A cancellation token.

Returns

A collection of versions available for the named service. A null element may be in the collection if the server may consider a service request without regard to the requested version.

Applies to