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

ArmComputeModelFactory.SharedGalleryOSDiskImage Method

Definition

Initializes a new instance of SharedGalleryOSDiskImage.

public static Azure.ResourceManager.Compute.Models.SharedGalleryOSDiskImage SharedGalleryOSDiskImage(int? diskSizeGB = default, Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching? hostCaching = default);
static member SharedGalleryOSDiskImage : Nullable<int> * Nullable<Azure.ResourceManager.Compute.Models.SharedGalleryHostCaching> -> Azure.ResourceManager.Compute.Models.SharedGalleryOSDiskImage
Public Shared Function SharedGalleryOSDiskImage (Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional hostCaching As Nullable(Of SharedGalleryHostCaching) = Nothing) As SharedGalleryOSDiskImage

Parameters

diskSizeGB
Nullable<Int32>

This property indicates the size of the VHD to be created.

hostCaching
Nullable<SharedGalleryHostCaching>

The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.

Returns

A new SharedGalleryOSDiskImage instance for mocking.

Applies to