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

GalleryOSDiskImage 构造函数

定义

重载

GalleryOSDiskImage()

初始化 GalleryOSDiskImage 类的新实例。

GalleryOSDiskImage(Nullable<Int32>, Nullable<HostCaching>, GalleryDiskImageSource)

初始化 GalleryOSDiskImage 类的新实例。

GalleryOSDiskImage()

初始化 GalleryOSDiskImage 类的新实例。

public GalleryOSDiskImage ();
Public Sub New ()

适用于

GalleryOSDiskImage(Nullable<Int32>, Nullable<HostCaching>, GalleryDiskImageSource)

初始化 GalleryOSDiskImage 类的新实例。

public GalleryOSDiskImage (int? sizeInGB = default, Microsoft.Azure.Management.Compute.Models.HostCaching? hostCaching = default, Microsoft.Azure.Management.Compute.Models.GalleryDiskImageSource source = default);
new Microsoft.Azure.Management.Compute.Models.GalleryOSDiskImage : Nullable<int> * Nullable<Microsoft.Azure.Management.Compute.Models.HostCaching> * Microsoft.Azure.Management.Compute.Models.GalleryDiskImageSource -> Microsoft.Azure.Management.Compute.Models.GalleryOSDiskImage
Public Sub New (Optional sizeInGB As Nullable(Of Integer) = Nothing, Optional hostCaching As Nullable(Of HostCaching) = Nothing, Optional source As GalleryDiskImageSource = Nothing)

参数

sizeInGB
Nullable<Int32>

此属性指示要创建的 VHD 的大小。

hostCaching
Nullable<HostCaching>

磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite”。 可能的值包括:“None”、“ReadOnly”、“ReadWrite”

适用于