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
DoNotEnforce
The policy effect is not enforced during resource creation or update.
public static EnforcementMode DoNotEnforce { get; }
Property Value
Methods
Equals(EnforcementMode)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(EnforcementMode other)
Parameters
other
EnforcementModeAn object to compare with this object.
Returns
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
EnforcementModeright
EnforcementMode
Returns
implicit operator EnforcementMode(string)
Converts a string to a EnforcementMode.
public static implicit operator EnforcementMode(string value)
Parameters
value
string
Returns
operator !=(EnforcementMode, EnforcementMode)
Determines if two EnforcementMode values are not the same.
public static bool operator !=(EnforcementMode left, EnforcementMode right)
Parameters
left
EnforcementModeright
EnforcementMode