Show / Hide Table of Contents

Struct RetentionDurationType

Retention duration type of retention policy.

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

Constructors

RetentionDurationType(String)

Initializes a new instance of RetentionDurationType.

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

Exceptions
System.ArgumentNullException

value is null.

Properties

Days

Days.

Declaration
public static Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType Days { get; }
Property Value
RetentionDurationType

Invalid

Invalid.

Declaration
public static Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType Invalid { get; }
Property Value
RetentionDurationType

Months

Months.

Declaration
public static Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType Months { get; }
Property Value
RetentionDurationType

Weeks

Weeks.

Declaration
public static Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType Weeks { get; }
Property Value
RetentionDurationType

Years

Years.

Declaration
public static Azure.ResourceManager.RecoveryServicesBackup.Models.RetentionDurationType Years { get; }
Property Value
RetentionDurationType

Methods

Equals(RetentionDurationType)

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

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

Determines if two RetentionDurationType values are the same.

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

RetentionDurationType right

Returns
System.Boolean

Implicit(String to RetentionDurationType)

Converts a System.String to a RetentionDurationType.

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

Returns
RetentionDurationType

Inequality(RetentionDurationType, RetentionDurationType)

Determines if two RetentionDurationType values are not the same.

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

RetentionDurationType right

Returns
System.Boolean

Back to top Azure SDK for .NET