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

CreationData 构造函数

定义

重载

CreationData()

初始化 CreationData 类的新实例。

CreationData(DiskCreateOption, String, ImageDiskReference, ImageDiskReference, String, String, String, Nullable<Int64>, Nullable<Int32>)

初始化 CreationData 类的新实例。

CreationData()

初始化 CreationData 类的新实例。

public CreationData ();
Public Sub New ()

适用于

CreationData(DiskCreateOption, String, ImageDiskReference, ImageDiskReference, String, String, String, Nullable<Int64>, Nullable<Int32>)

初始化 CreationData 类的新实例。

public CreationData (Microsoft.Azure.Management.Compute.Fluent.Models.DiskCreateOption createOption, string storageAccountId = default, Microsoft.Azure.Management.Compute.Fluent.Models.ImageDiskReference imageReference = default, Microsoft.Azure.Management.Compute.Fluent.Models.ImageDiskReference galleryImageReference = default, string sourceUri = default, string sourceResourceId = default, string sourceUniqueId = default, long? uploadSizeBytes = default, int? logicalSectorSize = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.CreationData : Microsoft.Azure.Management.Compute.Fluent.Models.DiskCreateOption * string * Microsoft.Azure.Management.Compute.Fluent.Models.ImageDiskReference * Microsoft.Azure.Management.Compute.Fluent.Models.ImageDiskReference * string * string * string * Nullable<int64> * Nullable<int> -> Microsoft.Azure.Management.Compute.Fluent.Models.CreationData
Public Sub New (createOption As DiskCreateOption, Optional storageAccountId As String = Nothing, Optional imageReference As ImageDiskReference = Nothing, Optional galleryImageReference As ImageDiskReference = Nothing, Optional sourceUri As String = Nothing, Optional sourceResourceId As String = Nothing, Optional sourceUniqueId As String = Nothing, Optional uploadSizeBytes As Nullable(Of Long) = Nothing, Optional logicalSectorSize As Nullable(Of Integer) = Nothing)

参数

createOption
DiskCreateOption

这会枚举创建磁盘的可能来源。 可能的值包括:“Empty”、“Attach”、“FromImage”、“Import”、“Copy”、“Restore”、“Upload”

storageAccountId
String

如果 createOption 为 Import,则为必需项。 包含要导入为磁盘的 Blob 的存储帐户的 Azure 资源管理器标识符。

imageReference
ImageDiskReference

磁盘源信息。

galleryImageReference
ImageDiskReference

如果从库映像创建,则为必需项。 ImageDiskReference 的 ID 将是从中创建磁盘的共享映像版本的 ARM ID。

sourceUri
String

如果 createOption 为 Import,则这是要导入到托管磁盘的 Blob 的 URI。

sourceResourceId
String

如果 createOption 为 Copy,则这是源快照或磁盘的 ARM ID。

sourceUniqueId
String

如果设置了此字段,则这是标识此资源源的唯一 ID。

uploadSizeBytes
Nullable<Int64>

如果 createOption 为 Upload,则这是上传内容(包括 VHD 页脚)的大小。 对于 VHD 页脚) ,此值应介于 20972032 (20 MiB + 512 字节之间,对于 VHD 页脚) ,此值应介于 32 TiB + 512 字节 (35183298347520字节之间。

logicalSectorSize
Nullable<Int32>

超级磁盘的逻辑扇区大小(以字节为单位)。 支持的值为 512 和 4096。 4096 是默认值。

适用于