你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

StorageTargetsExtensions.GetAsync 方法

定义

从缓存返回存储目标。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.StorageCache.Models.StorageTarget> GetAsync (this Microsoft.Azure.Management.StorageCache.IStorageTargets operations, string resourceGroupName, string cacheName, string storageTargetName, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.StorageCache.IStorageTargets * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.StorageCache.Models.StorageTarget>
<Extension()>
Public Function GetAsync (operations As IStorageTargets, resourceGroupName As String, cacheName As String, storageTargetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StorageTarget)

参数

operations
IStorageTargets

此扩展方法的操作组。

resourceGroupName
String

目标资源组。

cacheName
String

缓存的名称。 名称的长度不能大于 80,字符必须来自 [-0-9a-zA-Z_] char 类。

storageTargetName
String

存储目标的名称。

cancellationToken
CancellationToken

取消标记。

返回

适用于