共用方式為


ArmComputeModelFactory.GalleryImageVersionPolicyViolation Method

Definition

Initializes a new instance of GalleryImageVersionPolicyViolation.

public static Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolation GalleryImageVersionPolicyViolation (Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolationCategory? category = default, string details = default);
static member GalleryImageVersionPolicyViolation : Nullable<Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolationCategory> * string -> Azure.ResourceManager.Compute.Models.GalleryImageVersionPolicyViolation
Public Shared Function GalleryImageVersionPolicyViolation (Optional category As Nullable(Of GalleryImageVersionPolicyViolationCategory) = Nothing, Optional details As String = Nothing) As GalleryImageVersionPolicyViolation

Parameters

category
Nullable<GalleryImageVersionPolicyViolationCategory>

Describes the nature of the policy violation.

details
String

Describes specific details about why this policy violation was reported.

Returns

A new GalleryImageVersionPolicyViolation instance for mocking.

Applies to