TrackedResource Constructors

Definition

Overloads

TrackedResource()

Initializes a new instance of the TrackedResource class.

TrackedResource(String, String, String, String, IDictionary<String,String>)

Initializes a new instance of the TrackedResource class.

TrackedResource()

Initializes a new instance of the TrackedResource class.

C#
public TrackedResource();

Applies to

Azure SDK for .NET Legacy
Продукт Версії
Azure SDK for .NET Legacy

TrackedResource(String, String, String, String, IDictionary<String,String>)

Initializes a new instance of the TrackedResource class.

C#
public TrackedResource(string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default);

Parameters

location
String

The geo-location where the resource lives

id
String

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

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

tags
IDictionary<String,String>

Resource tags.

Applies to

Azure SDK for .NET Legacy
Продукт Версії
Azure SDK for .NET Legacy