共用方式為


IDisk.GrantAccessAsync(Int32, CancellationToken) Method

Definition

Grants access to the disk asynchronously.

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)

Parameters

accessDurationInSeconds
Int32

The access duration in seconds.

cancellationToken
CancellationToken

Returns

Applies to