Bagikan melalui


ResourceIdentifier Class

Definition

An Azure Resource Manager resource identifier.

public sealed class ResourceIdentifier : IComparable<Azure.Core.ResourceIdentifier>, IEquatable<Azure.Core.ResourceIdentifier>
type ResourceIdentifier = class
    interface IEquatable<ResourceIdentifier>
    interface IComparable<ResourceIdentifier>
Public NotInheritable Class ResourceIdentifier
Implements IComparable(Of ResourceIdentifier), IEquatable(Of ResourceIdentifier)
Inheritance
ResourceIdentifier
Implements

Constructors

ResourceIdentifier(String)

Initializes a new instance of the ResourceIdentifier class.

Fields

Root

The root of the resource hierarchy.

Properties

Location

Gets the location if it exists otherwise null.

Name

The name of the resource.

Parent

The immediate parent containing this resource.

Provider

Gets the provider namespace if it exists otherwise null.

ResourceGroupName

The name of the resource group if it exists otherwise null.

ResourceType

The resource type of the resource.

SubscriptionId

Gets the subscription id if it exists otherwise null.

Methods

CompareTo(ResourceIdentifier)

Compre this resource identifier to the given resource identifier.

Equals(ResourceIdentifier)

Determine if this resource identifier is equivalent to the given resource identifier.

Parse(String)

Converts the string representation of a ResourceIdentifier to the equivalent ResourceIdentifier structure.

ToString()

Return the string representation of the resource identifier.

TryParse(String, ResourceIdentifier)

Converts the string representation of a ResourceIdentifier to the equivalent ResourceIdentifier structure.

Operators

Equality(ResourceIdentifier, ResourceIdentifier)

Operator overloading for '=='.

GreaterThan(ResourceIdentifier, ResourceIdentifier)

Compares one ResourceIdentifier with another instance.

GreaterThanOrEqual(ResourceIdentifier, ResourceIdentifier)

Compares one ResourceIdentifier with another instance.

Implicit(ResourceIdentifier to String)

Convert a resource identifier to a string.

Inequality(ResourceIdentifier, ResourceIdentifier)

Operator overloading for '!='.

LessThan(ResourceIdentifier, ResourceIdentifier)

Compares one ResourceIdentifier with another instance.

LessThanOrEqual(ResourceIdentifier, ResourceIdentifier)

Compares one ResourceIdentifier with another instance.

Applies to