HttpListenerBasicIdentity(String, String) 建構函式

定義

使用指定的使用者名稱和密碼,初始化 HttpListenerBasicIdentity 類別的新執行個體。

public:
 HttpListenerBasicIdentity(System::String ^ username, System::String ^ password);
public HttpListenerBasicIdentity (string username, string password);
new System.Net.HttpListenerBasicIdentity : string * string -> System.Net.HttpListenerBasicIdentity
Public Sub New (username As String, password As String)

參數

username
String

使用者名稱。

password
String

密碼。

備註

執行基本身份驗證時, HttpListener 類別會呼叫這個建構函式。

適用於