Show / Hide Table of Contents

Struct ReservationPurchasesPolicy

The policy that controls whether Azure reservation purchases are allowed.

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

Constructors

ReservationPurchasesPolicy(String)

Initializes a new instance of ReservationPurchasesPolicy.

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

Exceptions
System.ArgumentNullException

value is null.

Properties

Allowed

Allowed.

Declaration
public static Azure.ResourceManager.Billing.Models.ReservationPurchasesPolicy Allowed { get; }
Property Value
ReservationPurchasesPolicy

Disabled

Disabled.

Declaration
public static Azure.ResourceManager.Billing.Models.ReservationPurchasesPolicy Disabled { get; }
Property Value
ReservationPurchasesPolicy

NotAllowed

NotAllowed.

Declaration
public static Azure.ResourceManager.Billing.Models.ReservationPurchasesPolicy NotAllowed { get; }
Property Value
ReservationPurchasesPolicy

Other

Other.

Declaration
public static Azure.ResourceManager.Billing.Models.ReservationPurchasesPolicy Other { get; }
Property Value
ReservationPurchasesPolicy

Methods

Equals(ReservationPurchasesPolicy)

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

Declaration
public bool Equals (Azure.ResourceManager.Billing.Models.ReservationPurchasesPolicy other);
Parameters
ReservationPurchasesPolicy 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(ReservationPurchasesPolicy, ReservationPurchasesPolicy)

Determines if two ReservationPurchasesPolicy values are the same.

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

ReservationPurchasesPolicy right

Returns
System.Boolean

Implicit(String to ReservationPurchasesPolicy)

Converts a System.String to a ReservationPurchasesPolicy.

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

Returns
ReservationPurchasesPolicy

Inequality(ReservationPurchasesPolicy, ReservationPurchasesPolicy)

Determines if two ReservationPurchasesPolicy values are not the same.

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

ReservationPurchasesPolicy right

Returns
System.Boolean

Back to top Azure SDK for .NET