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

IWithVhdAttachedDiskSettings<ParentT>.WithCaching(CachingTypes) 方法

定义

指定数据磁盘的缓存类型。

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachineUnmanagedDataDisk.UpdateDefinition.IWithVhdAttachedDiskSettings<ParentT> WithCaching (Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes cachingType);
abstract member WithCaching : Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachineUnmanagedDataDisk.UpdateDefinition.IWithVhdAttachedDiskSettings<'ParentT>
Public Function WithCaching (cachingType As CachingTypes) As IWithVhdAttachedDiskSettings(Of ParentT)

参数

cachingType
CachingTypes

磁盘缓存类型。 可能的值包括:“None”、“ReadOnly”、“ReadWrite”。

返回

适用于