CostAllocationEntity(CostAllocationResourceType, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.