Compartilhar via


ISnapshot.GrantAccessAsync(Int32, CancellationToken) Método

Definição

Concede acesso ao instantâneo de forma assíncrona.

public System.Threading.Tasks.Task<string> GrantAccessAsync (int accessDurationInSeconds, System.Threading.CancellationToken cancellationToken = default);
abstract member GrantAccessAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GrantAccessAsync (accessDurationInSeconds As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parâmetros

accessDurationInSeconds
Int32

A duração do acesso em segundos.

cancellationToken
CancellationToken

Retornos

Aplica-se a