CostAllocationEntity(CostAllocationResourceType, String) Constructor

Definition

Initializes a new instance of CostAllocationEntity.

public CostAllocationEntity(Azure.ResourceManager.CostManagement.Models.CostAllocationResourceType resourceType, string name);
new Azure.ResourceManager.CostManagement.Models.CostAllocationEntity : Azure.ResourceManager.CostManagement.Models.CostAllocationResourceType * string -> Azure.ResourceManager.CostManagement.Models.CostAllocationEntity
Public Sub New (resourceType As CostAllocationResourceType, name As String)

Parameters

resourceType
CostAllocationResourceType

Type of resources contained in this cost allocation rule.

name
String

If resource type is dimension, this must be either ResourceGroupName or SubscriptionId. If resource type is tag, this must be a valid Azure tag.

Exceptions

name is null.

Applies to