Struct PolicyType
- Namespace
- Azure.ResourceManager.Resources.Models
- Assembly
- Azure.ResourceManager.dll
The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
public readonly struct PolicyType : IEquatable<PolicyType>
- Implements
- Inherited Members
Constructors
PolicyType(string)
Initializes a new instance of PolicyType.
public PolicyType(string value)
Parameters
value
string
Exceptions
- ArgumentNullException
value
is null.
Properties
BuiltIn
BuiltIn.
public static PolicyType BuiltIn { get; }
Property Value
Custom
Custom.
public static PolicyType Custom { get; }
Property Value
NotSpecified
NotSpecified.
public static PolicyType NotSpecified { get; }
Property Value
Static
Static.
public static PolicyType Static { get; }
Property Value
Methods
Equals(PolicyType)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PolicyType other)
Parameters
other
PolicyTypeAn 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 ==(PolicyType, PolicyType)
Determines if two PolicyType values are the same.
public static bool operator ==(PolicyType left, PolicyType right)
Parameters
left
PolicyTyperight
PolicyType
Returns
implicit operator PolicyType(string)
Converts a string to a PolicyType.
public static implicit operator PolicyType(string value)
Parameters
value
string
Returns
operator !=(PolicyType, PolicyType)
Determines if two PolicyType values are not the same.
public static bool operator !=(PolicyType left, PolicyType right)
Parameters
left
PolicyTyperight
PolicyType