Table of Contents

Struct EnforcementMode

Namespace
Azure.ResourceManager.Resources.Models
Assembly
Azure.ResourceManager.dll

The policy assignment enforcement mode. Possible values are Default and DoNotEnforce.

public readonly struct EnforcementMode : IEquatable<EnforcementMode>
Implements
Inherited Members

Constructors

EnforcementMode(string)

Initializes a new instance of EnforcementMode.

public EnforcementMode(string value)

Parameters

value string

Exceptions

ArgumentNullException

value is null.

Properties

Default

The policy effect is enforced during resource creation or update.

public static EnforcementMode Default { get; }

Property Value

EnforcementMode

DoNotEnforce

The policy effect is not enforced during resource creation or update.

public static EnforcementMode DoNotEnforce { get; }

Property Value

EnforcementMode

Methods

Equals(EnforcementMode)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(EnforcementMode other)

Parameters

other EnforcementMode

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(EnforcementMode, EnforcementMode)

Determines if two EnforcementMode values are the same.

public static bool operator ==(EnforcementMode left, EnforcementMode right)

Parameters

left EnforcementMode
right EnforcementMode

Returns

bool

implicit operator EnforcementMode(string)

Converts a string to a EnforcementMode.

public static implicit operator EnforcementMode(string value)

Parameters

value string

Returns

EnforcementMode

operator !=(EnforcementMode, EnforcementMode)

Determines if two EnforcementMode values are not the same.

public static bool operator !=(EnforcementMode left, EnforcementMode right)

Parameters

left EnforcementMode
right EnforcementMode

Returns

bool