Show / Hide Table of Contents

Struct EnforcementMode

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

Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.dll
Syntax
public struct EnforcementMode : IEquatable<Azure.ResourceManager.Resources.Models.EnforcementMode>

Constructors

EnforcementMode(String)

Initializes a new instance of EnforcementMode.

Declaration
public EnforcementMode (string value);
Parameters
System.String value

Exceptions
System.ArgumentNullException

value is null.

Properties

Default

The policy effect is enforced during resource creation or update.

Declaration
public static Azure.ResourceManager.Resources.Models.EnforcementMode Default { get; }
Property Value
EnforcementMode

DoNotEnforce

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

Declaration
public static Azure.ResourceManager.Resources.Models.EnforcementMode DoNotEnforce { get; }
Property Value
EnforcementMode

Enforced

The policy effect is enforced during resource creation or update.

Declaration
[System.ComponentModel.EditorBrowsable]
public static Azure.ResourceManager.Resources.Models.EnforcementMode Enforced { get; }
Property Value
EnforcementMode

Methods

Equals(EnforcementMode)

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

Declaration
public bool Equals (Azure.ResourceManager.Resources.Models.EnforcementMode other);
Parameters
EnforcementMode other

An object to compare with this object.

Returns
System.Boolean

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

Equals(Object)

Indicates whether this instance and a specified object are equal.

Declaration
[System.ComponentModel.EditorBrowsable]
public override bool Equals (object obj);
Parameters
System.Object obj

The object to compare with the current instance.

Returns
System.Boolean

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

Declaration
[System.ComponentModel.EditorBrowsable]
public override int GetHashCode ();
Returns
System.Int32

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString ();
Returns
System.String

The fully qualified type name.

Operators

Equality(EnforcementMode, EnforcementMode)

Determines if two EnforcementMode values are the same.

Declaration
public static bool operator == (Azure.ResourceManager.Resources.Models.EnforcementMode left, Azure.ResourceManager.Resources.Models.EnforcementMode right);
Parameters
EnforcementMode left

EnforcementMode right

Returns
System.Boolean

Implicit(String to EnforcementMode)

Converts a System.String to a EnforcementMode.

Declaration
public static implicit operator Azure.ResourceManager.Resources.Models.EnforcementMode (string value);
Parameters
System.String value

Returns
EnforcementMode

Inequality(EnforcementMode, EnforcementMode)

Determines if two EnforcementMode values are not the same.

Declaration
public static bool operator != (Azure.ResourceManager.Resources.Models.EnforcementMode left, Azure.ResourceManager.Resources.Models.EnforcementMode right);
Parameters
EnforcementMode left

EnforcementMode right

Returns
System.Boolean

Back to top Azure SDK for .NET