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

CachesExtensions.CreateOrUpdate(ICaches, String, String, Cache) 方法

定义

创建或更新缓存。

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

参数

operations
ICaches

此扩展方法的操作组。

resourceGroupName
String

目标资源组。

cacheName
String

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

cache
Cache

包含新缓存的用户可选属性的 对象。 如果包含只读属性,则它们必须与这些属性的现有值匹配。

返回

适用于