DeviceIdManager.LoadOrRegisterDevice Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LoadOrRegisterDevice() |
Loads the device credentials (if they exist). |
LoadOrRegisterDevice(Uri) |
Loads the device credentials (if they exist). |
LoadOrRegisterDevice(String, String) |
Loads the device credentials (if they exist). |
LoadOrRegisterDevice(Uri, String, String) |
Loads the device credentials (if they exist). |
LoadOrRegisterDevice()
Loads the device credentials (if they exist).
public:
static System::ServiceModel::Description::ClientCredentials ^ LoadOrRegisterDevice();
public static System.ServiceModel.Description.ClientCredentials LoadOrRegisterDevice ();
static member LoadOrRegisterDevice : unit -> System.ServiceModel.Description.ClientCredentials
Public Shared Function LoadOrRegisterDevice () As ClientCredentials
Returns
Applies to
LoadOrRegisterDevice(Uri)
Loads the device credentials (if they exist).
public:
static System::ServiceModel::Description::ClientCredentials ^ LoadOrRegisterDevice(Uri ^ issuerUri);
public static System.ServiceModel.Description.ClientCredentials LoadOrRegisterDevice (Uri issuerUri);
static member LoadOrRegisterDevice : Uri -> System.ServiceModel.Description.ClientCredentials
Public Shared Function LoadOrRegisterDevice (issuerUri As Uri) As ClientCredentials
Parameters
- issuerUri
- Uri
URL for the current token issuer
Returns
Remarks
The issuerUri can be retrieved from the IServiceConfiguration interface's CurrentIssuer property.
Applies to
LoadOrRegisterDevice(String, String)
Loads the device credentials (if they exist).
public:
static System::ServiceModel::Description::ClientCredentials ^ LoadOrRegisterDevice(System::String ^ deviceName, System::String ^ devicePassword);
public static System.ServiceModel.Description.ClientCredentials LoadOrRegisterDevice (string deviceName, string devicePassword);
static member LoadOrRegisterDevice : string * string -> System.ServiceModel.Description.ClientCredentials
Public Shared Function LoadOrRegisterDevice (deviceName As String, devicePassword As String) As ClientCredentials
Parameters
- deviceName
- String
Device name that should be registered
- devicePassword
- String
Device password that should be registered
Returns
Applies to
LoadOrRegisterDevice(Uri, String, String)
Loads the device credentials (if they exist).
public:
static System::ServiceModel::Description::ClientCredentials ^ LoadOrRegisterDevice(Uri ^ issuerUri, System::String ^ deviceName, System::String ^ devicePassword);
public static System.ServiceModel.Description.ClientCredentials LoadOrRegisterDevice (Uri issuerUri, string deviceName, string devicePassword);
static member LoadOrRegisterDevice : Uri * string * string -> System.ServiceModel.Description.ClientCredentials
Public Shared Function LoadOrRegisterDevice (issuerUri As Uri, deviceName As String, devicePassword As String) As ClientCredentials
Parameters
- 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
Remarks
The issuerUri can be retrieved from the IServiceConfiguration interface's CurrentIssuer property.