Share via


ConfigurationClient.GetSnapshotAsync Method

Definition

Gets a single configuration snapshot.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSnapshot>> GetSnapshotAsync (string snapshotName, System.Collections.Generic.IEnumerable<Azure.Data.AppConfiguration.SnapshotFields> fields = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSnapshotAsync : string * seq<Azure.Data.AppConfiguration.SnapshotFields> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSnapshot>>
override this.GetSnapshotAsync : string * seq<Azure.Data.AppConfiguration.SnapshotFields> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Data.AppConfiguration.ConfigurationSnapshot>>
Public Overridable Function GetSnapshotAsync (snapshotName As String, Optional fields As IEnumerable(Of SnapshotFields) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConfigurationSnapshot))

Parameters

snapshotName
String

The name of the configuration snapshot to retrieve.

fields
IEnumerable<SnapshotFields>

Used to select what fields are present in the returned resource(s).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to