Show / Hide Table of Contents

    Class Resource

    An Azure resource.

    Inheritance
    Object
    Resource
    ApplicableSchedule
    ArmTemplate
    Artifact
    ArtifactSource
    CustomImage
    Disk
    DtlEnvironment
    Formula
    GalleryImage
    Lab
    LabCost
    LabVirtualMachine
    NotificationChannel
    Policy
    Schedule
    Secret
    ServiceFabric
    ServiceRunner
    User
    VirtualNetwork
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.DevTestLabs.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, String, IDictionary<String,String>)

    Initializes a new instance of the Resource class.

    Declaration
    public Resource (string id = null, string name = null, string type = null, string location = null, System.Collections.Generic.IDictionary<string,string> tags = null);
    Parameters
    String id

    The identifier of the resource.

    String name

    The name of the resource.

    String type

    The type of the resource.

    String location

    The location of the resource.

    IDictionary<String,String> tags

    The tags of the resource.

    Properties

    Id

    Gets the identifier of the resource.

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

    Location

    Gets or sets the location of the resource.

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

    Name

    Gets the name of the resource.

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

    Tags

    Gets or sets the tags of the resource.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="tags")]
    public System.Collections.Generic.IDictionary<string,string> Tags { get; set; }
    Property Value
    IDictionary<String,String>

    Type

    Gets the type of the resource.

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

    Back to top Azure SDK for Net