Share via


TaxonomyCategory Constructor

Definition

Initializes a new instance of TaxonomyCategory.

public TaxonomyCategory(string id, string name, Azure.AI.Projects.RiskCategory riskCategory, System.Collections.Generic.IEnumerable<Azure.AI.Projects.TaxonomySubCategory> subCategories);
new Azure.AI.Projects.TaxonomyCategory : string * string * Azure.AI.Projects.RiskCategory * seq<Azure.AI.Projects.TaxonomySubCategory> -> Azure.AI.Projects.TaxonomyCategory
Public Sub New (id As String, name As String, riskCategory As RiskCategory, subCategories As IEnumerable(Of TaxonomySubCategory))

Parameters

id
String

Unique identifier of the taxonomy category.

name
String

Name of the taxonomy category.

riskCategory
RiskCategory

Risk category associated with this taxonomy category.

subCategories
IEnumerable<TaxonomySubCategory>

List of taxonomy sub categories.

Exceptions

id, name or subCategories is null.

Applies to