Table of Contents

Struct TagPatchMode

Namespace
Azure.ResourceManager.Resources.Models
Assembly
Azure.ResourceManager.dll

The operation type for the patch API.

public readonly struct TagPatchMode : IEquatable<TagPatchMode>
Implements
Inherited Members

Constructors

TagPatchMode(string)

Initializes a new instance of TagPatchMode.

public TagPatchMode(string value)

Parameters

value string

Exceptions

ArgumentNullException

value is null.

Properties

Delete

The 'delete' option allows selectively deleting tags based on given names or name/value pairs.

public static TagPatchMode Delete { get; }

Property Value

TagPatchMode

Merge

The 'merge' option allows adding tags with new names and updating the values of tags with existing names.

public static TagPatchMode Merge { get; }

Property Value

TagPatchMode

Replace

The 'replace' option replaces the entire set of existing tags with a new set.

public static TagPatchMode Replace { get; }

Property Value

TagPatchMode

Methods

Equals(TagPatchMode)

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

public bool Equals(TagPatchMode other)

Parameters

other TagPatchMode

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

Determines if two TagPatchMode values are the same.

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

Parameters

left TagPatchMode
right TagPatchMode

Returns

bool

implicit operator TagPatchMode(string)

Converts a string to a TagPatchMode.

public static implicit operator TagPatchMode(string value)

Parameters

value string

Returns

TagPatchMode

operator !=(TagPatchMode, TagPatchMode)

Determines if two TagPatchMode values are not the same.

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

Parameters

left TagPatchMode
right TagPatchMode

Returns

bool