Udostępnij za pośrednictwem


NonComplianceMessage Class

Definition

A message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results.

public class NonComplianceMessage
type NonComplianceMessage = class
Public Class NonComplianceMessage
Inheritance
NonComplianceMessage

Constructors

NonComplianceMessage()

Initializes a new instance of the NonComplianceMessage class.

NonComplianceMessage(String, String)

Initializes a new instance of the NonComplianceMessage class.

Properties

Message

Gets or sets a message that describes why a resource is non-compliant with the policy. This is shown in 'deny' error messages and on resource's non-compliant compliance results.

PolicyDefinitionReferenceId

Gets or sets the policy definition reference ID within a policy set definition the message is intended for. This is only applicable if the policy assignment assigns a policy set definition. If this is not provided the message applies to all policies assigned by this policy assignment.

Methods

Validate()

Validate the object.

Applies to