共用方式為


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, String, IDictionary<String,String>, String, String)

Initializes a new instance of the Resource class.

Properties

Etag

Gets the etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

Id

Gets azure resource Id

Kind

Gets metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Location

Gets or sets resource location

Name

Gets azure resource name

Tags

Gets or sets resource tags

Type

Gets azure resource type

Methods

Validate()

Validate the object.

Applies to