Resource Constructors

Definition

Overloads

Resource()

Initializes a new instance of the Resource class.

Resource(String, String, String)

Initializes a new instance of the Resource class.

Resource()

Initializes a new instance of the Resource class.

public Resource ();

Applies to

Azure SDK for .NET Legacy
Prodotto Versioni
Azure SDK for .NET Legacy

Resource(String, String, String)

Initializes a new instance of the Resource class.

public Resource (string id = default, string name = default, string type = default);

Parameters

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"

Applies to

Azure SDK for .NET Legacy
Prodotto Versioni
Azure SDK for .NET Legacy