DeviceIdManager.RegisterDevice Method

Definition

Overloads

RegisterDevice()

Registers the given device with Live ID with a random application ID

RegisterDevice(Guid)

Registers the given device with Live ID

RegisterDevice(Guid, Uri)

Registers the given device with Live ID

RegisterDevice(Guid, String, String)

Registers the given device with Live ID

RegisterDevice(Guid, Uri, String, String)

Registers the given device with Live ID

RegisterDevice()

Registers the given device with Live ID with a random application ID

public:
 static System::ServiceModel::Description::ClientCredentials ^ RegisterDevice();
public static System.ServiceModel.Description.ClientCredentials RegisterDevice ();
static member RegisterDevice : unit -> System.ServiceModel.Description.ClientCredentials
Public Shared Function RegisterDevice () As ClientCredentials

Returns

ClientCredentials that were registered

Applies to

RegisterDevice(Guid)

Registers the given device with Live ID

public:
 static System::ServiceModel::Description::ClientCredentials ^ RegisterDevice(Guid applicationId);
public static System.ServiceModel.Description.ClientCredentials RegisterDevice (Guid applicationId);
static member RegisterDevice : Guid -> System.ServiceModel.Description.ClientCredentials
Public Shared Function RegisterDevice (applicationId As Guid) As ClientCredentials

Parameters

applicationId
Guid

ID for the application

Returns

ClientCredentials that were registered

Applies to

RegisterDevice(Guid, Uri)

Registers the given device with Live ID

public:
 static System::ServiceModel::Description::ClientCredentials ^ RegisterDevice(Guid applicationId, Uri ^ issuerUri);
public static System.ServiceModel.Description.ClientCredentials RegisterDevice (Guid applicationId, Uri issuerUri);
static member RegisterDevice : Guid * Uri -> System.ServiceModel.Description.ClientCredentials
Public Shared Function RegisterDevice (applicationId As Guid, issuerUri As Uri) As ClientCredentials

Parameters

applicationId
Guid

ID for the application

issuerUri
Uri

URL for the current token issuer

Returns

ClientCredentials that were registered

Remarks

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

Applies to

RegisterDevice(Guid, String, String)

Registers the given device with Live ID

public:
 static System::ServiceModel::Description::ClientCredentials ^ RegisterDevice(Guid applicationId, System::String ^ deviceName, System::String ^ devicePassword);
public static System.ServiceModel.Description.ClientCredentials RegisterDevice (Guid applicationId, string deviceName, string devicePassword);
static member RegisterDevice : Guid * string * string -> System.ServiceModel.Description.ClientCredentials
Public Shared Function RegisterDevice (applicationId As Guid, deviceName As String, devicePassword As String) As ClientCredentials

Parameters

applicationId
Guid

ID for the application

deviceName
String

Device name that should be registered

devicePassword
String

Device password that should be registered

Returns

ClientCredentials that were registered

Applies to

RegisterDevice(Guid, Uri, String, String)

Registers the given device with Live ID

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

Parameters

applicationId
Guid

ID for the application

issuerUri
Uri

URL for the current token issuer

deviceName
String

Device name that should be registered

devicePassword
String

Device password that should be registered

Returns

ClientCredentials that were registered

Remarks

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

Applies to