Disk.grantAccessAsync 方法

定义

重载

grantAccessAsync(int accessDurationInSeconds)

Grants access to the disk asynchronously.

grantAccessAsync(int accessDurationInSeconds, ServiceCallback<String> callback)

Grants access to the disk asynchronously.

grantAccessAsync(int accessDurationInSeconds)

Grants access to the disk asynchronously.

public Observable<String> grantAccessAsync(int accessDurationInSeconds)

参数

accessDurationInSeconds
int

the access duration in seconds

返回

Observable<String>

a representation of the deferred computation of this call returning a read-only SAS URI to the disk

grantAccessAsync(int accessDurationInSeconds, ServiceCallback<String> callback)

Grants access to the disk asynchronously.

public ServiceFuture<String> grantAccessAsync(int accessDurationInSeconds, ServiceCallback<String> callback)

参数

accessDurationInSeconds
int

the access duration in seconds

callback
ServiceCallback<String>

the callback to call on success or failure, containing a read-only SAS URI to the disk, if successful

返回

ServiceFuture<String>

a handle to cancel the request

适用于