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

CommunityGalleryImage 构造函数

定义

重载

CommunityGalleryImage()

初始化 CommunityGalleryImage 类的新实例。

CommunityGalleryImage(OperatingSystemTypes, OperatingSystemStateTypes, GalleryImageIdentifier, String, String, String, String, Nullable<DateTime>, RecommendedMachineConfiguration, Disallowed, String, IList<GalleryImageFeature>, ImagePurchasePlan, String, String, String)

初始化 CommunityGalleryImage 类的新实例。

CommunityGalleryImage()

初始化 CommunityGalleryImage 类的新实例。

public CommunityGalleryImage ();
Public Sub New ()

适用于

CommunityGalleryImage(OperatingSystemTypes, OperatingSystemStateTypes, GalleryImageIdentifier, String, String, String, String, Nullable<DateTime>, RecommendedMachineConfiguration, Disallowed, String, IList<GalleryImageFeature>, ImagePurchasePlan, String, String, String)

初始化 CommunityGalleryImage 类的新实例。

public CommunityGalleryImage (Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes osType, Microsoft.Azure.Management.Compute.Models.OperatingSystemStateTypes osState, Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier identifier, string name = default, string location = default, string type = default, string uniqueId = default, DateTime? endOfLifeDate = default, Microsoft.Azure.Management.Compute.Models.RecommendedMachineConfiguration recommended = default, Microsoft.Azure.Management.Compute.Models.Disallowed disallowed = default, string hyperVGeneration = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.GalleryImageFeature> features = default, Microsoft.Azure.Management.Compute.Models.ImagePurchasePlan purchasePlan = default, string architecture = default, string privacyStatementUri = default, string eula = default);
new Microsoft.Azure.Management.Compute.Models.CommunityGalleryImage : Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes * Microsoft.Azure.Management.Compute.Models.OperatingSystemStateTypes * Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier * string * string * string * string * Nullable<DateTime> * Microsoft.Azure.Management.Compute.Models.RecommendedMachineConfiguration * Microsoft.Azure.Management.Compute.Models.Disallowed * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.GalleryImageFeature> * Microsoft.Azure.Management.Compute.Models.ImagePurchasePlan * string * string * string -> Microsoft.Azure.Management.Compute.Models.CommunityGalleryImage
Public Sub New (osType As OperatingSystemTypes, osState As OperatingSystemStateTypes, identifier As GalleryImageIdentifier, Optional name As String = Nothing, Optional location As String = Nothing, Optional type As String = Nothing, Optional uniqueId As String = Nothing, Optional endOfLifeDate As Nullable(Of DateTime) = Nothing, Optional recommended As RecommendedMachineConfiguration = Nothing, Optional disallowed As Disallowed = Nothing, Optional hyperVGeneration As String = Nothing, Optional features As IList(Of GalleryImageFeature) = Nothing, Optional purchasePlan As ImagePurchasePlan = Nothing, Optional architecture As String = Nothing, Optional privacyStatementUri As String = Nothing, Optional eula As String = Nothing)

参数

osType
OperatingSystemTypes

此属性允许指定从托管映像创建 VM 时磁盘中包含的 OS 类型。 <br><br> 可能的值为: <br><br>Windows<br><br>Linux。 可能的值包括:“Windows”、“Linux”

osState
OperatingSystemStateTypes

此属性允许用户指定在此映像下创建的虚拟机是“通用化”还是“专用”。 可能的值包括:“Generalized”、“Specialized”

name
String

资源名称

location
String

资源位置

type
String

资源类型

uniqueId
String

此社区库的唯一 ID。

endOfLifeDate
Nullable<DateTime>

库映像定义的生命周期结束日期。 此属性可用于解除授权目的。 此属性可更新。

disallowed
Disallowed
hyperVGeneration
String

虚拟机的虚拟机监控程序生成。 仅适用于 OS 磁盘。 可能的值包括:“V1”、“V2”

features
IList<GalleryImageFeature>

库映像功能的列表。

purchasePlan
ImagePurchasePlan
architecture
String

可能的值包括:“x64”、“Arm64”

privacyStatementUri
String

当前社区库图像的隐私声明 URI。

eula
String

当前社区库映像的最终用户许可协议。

适用于