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

Return Value

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

Remarks

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

Examples

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

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

See Also