Table of Contents

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

PolicyType

Custom

Custom.

public static PolicyType Custom { get; }

Property Value

PolicyType

NotSpecified

NotSpecified.

public static PolicyType NotSpecified { get; }

Property Value

PolicyType

Static

Static.

public static PolicyType Static { get; }

Property Value

PolicyType

Methods

Equals(PolicyType)

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

public bool Equals(PolicyType other)

Parameters

other PolicyType

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 ==(PolicyType, PolicyType)

Determines if two PolicyType values are the same.

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

Parameters

left PolicyType
right PolicyType

Returns

bool

implicit operator PolicyType(string)

Converts a string to a PolicyType.

public static implicit operator PolicyType(string value)

Parameters

value string

Returns

PolicyType

operator !=(PolicyType, PolicyType)

Determines if two PolicyType values are not the same.

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

Parameters

left PolicyType
right PolicyType

Returns

bool