Udostępnij za pośrednictwem


UsernamePasswordCredentials(String, String) Constructor

Definition

Initializes a new instance of UsernamePasswordCredentials.

public UsernamePasswordCredentials (string usernameReference, string passwordReference);
new Azure.ResourceManager.DeviceRegistry.Models.UsernamePasswordCredentials : string * string -> Azure.ResourceManager.DeviceRegistry.Models.UsernamePasswordCredentials
Public Sub New (usernameReference As String, passwordReference As String)

Parameters

usernameReference
String

A reference to secret containing the username.

passwordReference
String

A reference to secret containing the password.

Exceptions

usernameReference or passwordReference is null.

Applies to