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

StorageTargetsExtensions.CreateOrUpdate 方法

定义

创建或更新存储目标。 随时允许此操作,但如果缓存关闭或不正常,存储目标的实际创建/修改可能会延迟,直到缓存再次正常运行。

public static Microsoft.Azure.Management.StorageCache.Models.StorageTarget CreateOrUpdate (this Microsoft.Azure.Management.StorageCache.IStorageTargets operations, string resourceGroupName, string cacheName, string storageTargetName, Microsoft.Azure.Management.StorageCache.Models.StorageTarget storagetarget = default);
static member CreateOrUpdate : Microsoft.Azure.Management.StorageCache.IStorageTargets * string * string * string * Microsoft.Azure.Management.StorageCache.Models.StorageTarget -> Microsoft.Azure.Management.StorageCache.Models.StorageTarget
<Extension()>
Public Function CreateOrUpdate (operations As IStorageTargets, resourceGroupName As String, cacheName As String, storageTargetName As String, Optional storagetarget As StorageTarget = Nothing) As StorageTarget

参数

operations
IStorageTargets

此扩展方法的操作组。

resourceGroupName
String

目标资源组。

cacheName
String

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

storageTargetName
String

存储目标的名称。

storagetarget
StorageTarget

包含存储目标定义的 对象。

返回

适用于