Return the Tag Id to the users.

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

Syntax

C#
string GetTagId(
	UserCredential userCredential,
	string categoryName,
	string tagName
)
Visual Basic
Function GetTagId ( _
	userCredential As UserCredential, _
	categoryName As String, _
	tagName As String _
) As String
Visual C++
String^ GetTagId(
	UserCredential^ userCredential, 
	String^ categoryName, 
	String^ tagName
)

Parameters

userCredential
Type: Microsoft.Tag.CampaignManagement..::..UserCredential
A 64-bit encrypted GUID specifying the user credential.
categoryName
Type: System..::..String
The name of the Category containing the Tag to retrieve.
tagName
Type: System..::..String
The name of the Tag to be retrieved.

Return Value

A string containing the unique identifier for the Tag.

Examples

This code sample demonstrates how to call GetTagId(UserCredential, String, String).
CopyC#
private void CallGetTagId()
{
    try
    {
        MIBPContractClient OMIBPClient = new MIBPContractClient();
        UserCredential oCredential = new UserCredential();

        oCredential.AccessToken = "Enter your access token";
        string tagId = OMIBPClient.GetTagId(oCredential,
                                                "Category Name",
                                                "Tag Name");
    }
    catch
    {
        throw;
    }
}

See Also