FileShareResource.GetFileShareSnapshotAsync(String, CancellationToken) Method

Definition

Get a FileShareSnapshot.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FileShares.FileShareSnapshotResource>> GetFileShareSnapshotAsync(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFileShareSnapshotAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FileShares.FileShareSnapshotResource>>
override this.GetFileShareSnapshotAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.FileShares.FileShareSnapshotResource>>
Public Overridable Function GetFileShareSnapshotAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of FileShareSnapshotResource))

Parameters

name
String

The name of the FileShareSnapshot.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

name is null.

name is an empty string, and was expected to be non-empty.

Applies to