Share via


DeviceIdManager.RegisterDevice Method (Guid, Uri, String, String)

 

Applies To: Dynamics CRM 2015

Registers the given device with Live ID

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)

Syntax

public static ClientCredentials RegisterDevice(
    Guid applicationId,
    Uri issuerUri,
    string deviceName,
    string devicePassword
)
public:
static ClientCredentials^ RegisterDevice(
    Guid applicationId,
    Uri^ issuerUri,
    String^ deviceName,
    String^ devicePassword
)
static member RegisterDevice : 
        applicationId:Guid *
        issuerUri:Uri *
        deviceName:string *
        devicePassword:string -> ClientCredentials
Public Shared Function RegisterDevice (
    applicationId As Guid,
    issuerUri As Uri,
    deviceName As String,
    devicePassword As String
) As ClientCredentials

Parameters

  • applicationId
    Type: System.Guid

    ID for the application

  • issuerUri
    Type: System.Uri

    URL for the current token issuer

  • deviceName
    Type: System.String

    Device name that should be registered

  • devicePassword
    Type: System.String

    Device password that should be registered

Return Value

Type: System.ServiceModel.Description.ClientCredentials

ClientCredentials that were registered

Remarks

The issuerUri can be retrieved from the IServiceConfiguration interface's CurrentIssuer property.

See Also

RegisterDevice Overload
DeviceIdManager Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright