Show / Hide Table of Contents

    Class Resource

    The Resource model definition.

    Inheritance
    Object
    Resource
    AvailabilitySet
    ContainerService
    DedicatedHost
    DedicatedHostGroup
    Disk
    Gallery
    GalleryApplication
    GalleryApplicationVersion
    GalleryImage
    GalleryImageVersion
    Image
    ProximityPlacementGroup
    RollingUpgradeStatusInfo
    Snapshot
    VirtualMachine
    VirtualMachineExtension
    VirtualMachineExtensionImage
    VirtualMachineScaleSet
    VirtualMachineScaleSetVM
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.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 location, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null);
    Parameters
    String location

    Resource location

    String id

    Resource Id

    String name

    Resource name

    String type

    Resource type

    IDictionary<String,String> tags

    Resource tags

    Properties

    Id

    Gets resource Id

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

    Location

    Gets or sets resource location

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

    Name

    Gets resource name

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

    Tags

    Gets or sets resource tags

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

    Type

    Gets resource type

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

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net