다음을 통해 공유


Resource Class

Definition

An azure resource object

public class Resource : Microsoft.Rest.Azure.IResource
type Resource = class
    interface IResource
Public Class Resource
Implements IResource
Inheritance
Resource
Derived
Implements

Constructors

Resource()

Initializes a new instance of the Resource class.

Resource(String, String, String)

Initializes a new instance of the Resource class.

Properties

Id

Gets fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

Name

Gets the name of the resource

Type

Gets the type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

Applies to