IBrokeredServiceManifest.GetAvailableVersionsAsync 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.
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.