Namespace: Microsoft.Tag.CampaignManagement
Assembly: Microsoft.Tag.CampaignManagement (in Microsoft.Tag.CampaignManagement.dll) Version: 1.0.7785.0 (1.0.7785.0)

Syntax

C#
bool CreateCategory(
	UserCredential userCredential,
	Category category
)
Visual Basic
Function CreateCategory ( _
	userCredential As UserCredential, _
	category As Category _
) As Boolean
Visual C++
bool CreateCategory(
	UserCredential^ userCredential, 
	Category^ category
)

Parameters

userCredential
Type: Microsoft.Tag.CampaignManagement..::..UserCredential
A 64-bit encrypted GUID specifying the user credential.
category
Type: Microsoft.Tag.CampaignManagement..::..Category
A Category object representing the category to be created.

Return Value

true if the method succeeds

false if the method fails

Remarks

CreateCategory allows you to create a new Category to which you can then add Tags. You can organize similar Tags by creating them in a common Category.

CreateCategory fails when any of the following invalid parameters is passed:

  • Duplicate Category name
  • Category with an invalid status

See Also