Returns the URL corresponding to the QR code representation of the Tag specified by category name and Tag name.

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 GetQRUrl(
	UserCredential userCredential,
	string categoryName,
	string tagName
)
Visual Basic
Function GetQRUrl ( _
	userCredential As UserCredential, _
	categoryName As String, _
	tagName As String _
) As String
Visual C++
String^ GetQRUrl(
	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 return the QR URL for.
tagName
Type: System..::..String
The name of the Tag to obtain.

Return Value

A string containing the QR-specific URL for the Tag.

Remarks

Browsing to the URL returned from this method is just like scanning the QR code with a phone with respect to how it is logged and reported.

Examples

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

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

See Also