Show / Hide Table of Contents

    Class Resource

    An azure resource object

    Inheritance
    Object
    Resource
    ActionGroupResource
    ActivityLogAlertResource
    AlertRuleResource
    AutoscaleSettingResource
    LogProfileResource
    LogSearchRuleResource
    MetricAlertResource
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.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

    Azure resource Id

    String name

    Azure resource name

    String type

    Azure resource type

    IDictionary<String,String> tags

    Resource tags

    Properties

    Id

    Gets azure 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 azure 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 azure 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