Show / Hide Table of Contents

    Class Resource

    Inheritance
    Object
    Resource
    AzureEntityResource
    ProxyResource
    TrackedResource
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.DeploymentManager.dll
    Syntax
    public class Resource : Microsoft.Rest.Azure.IResource

    Constructors

    Resource()

    Initializes a new instance of the Resource class.

    Declaration
    public Resource ();

    Resource(String, String, String)

    Initializes a new instance of the Resource class.

    Declaration
    public Resource (string id = null, string name = null, string type = null);
    Parameters
    String id

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

    String name

    The name of the resource

    String type

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

    Properties

    Id

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="id")]
    public string Id { get; }
    Property Value
    String

    Name

    Gets the name of the resource

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="name")]
    public string Name { get; }
    Property Value
    String

    Type

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="type")]
    public string Type { get; }
    Property Value
    String

    Back to top Azure SDK for Net