共用方式為


DsmlSoapHttpConnection 建構函式

定義

初始化 DsmlSoapHttpConnection 類別的新執行個體。

多載

DsmlSoapHttpConnection(DsmlDirectoryIdentifier)

初始化 DsmlSoapHttpConnection 類別的新執行個體。

DsmlSoapHttpConnection(Uri)

初始化 DsmlSoapHttpConnection 類別的新執行個體。

DsmlSoapHttpConnection(DsmlDirectoryIdentifier, NetworkCredential)

初始化 DsmlSoapHttpConnection 類別的新執行個體。

DsmlSoapHttpConnection(DsmlDirectoryIdentifier, NetworkCredential, AuthType)

使用指定的標識碼、網路認證和驗證類型,初始化 類別的新實例 DsmlSoapHttpConnection

DsmlSoapHttpConnection(DsmlDirectoryIdentifier)

初始化 DsmlSoapHttpConnection 類別的新執行個體。

public:
 DsmlSoapHttpConnection(System::DirectoryServices::Protocols::DsmlDirectoryIdentifier ^ identifier);
public DsmlSoapHttpConnection (System.DirectoryServices.Protocols.DsmlDirectoryIdentifier identifier);
new System.DirectoryServices.Protocols.DsmlSoapHttpConnection : System.DirectoryServices.Protocols.DsmlDirectoryIdentifier -> System.DirectoryServices.Protocols.DsmlSoapHttpConnection
Public Sub New (identifier As DsmlDirectoryIdentifier)

參數

identifier
DsmlDirectoryIdentifier

物件,指定連接的伺服器。

例外狀況

identifier 是 null (在 Visual Basic 中為 Nothing)。

適用於

DsmlSoapHttpConnection(Uri)

初始化 DsmlSoapHttpConnection 類別的新執行個體。

public:
 DsmlSoapHttpConnection(Uri ^ uri);
public DsmlSoapHttpConnection (Uri uri);
new System.DirectoryServices.Protocols.DsmlSoapHttpConnection : Uri -> System.DirectoryServices.Protocols.DsmlSoapHttpConnection
Public Sub New (uri As Uri)

參數

uri
Uri

連接的伺服器。

例外狀況

uri 是 null (在 Visual Basic 中為 Nothing)。

適用於

DsmlSoapHttpConnection(DsmlDirectoryIdentifier, NetworkCredential)

初始化 DsmlSoapHttpConnection 類別的新執行個體。

public:
 DsmlSoapHttpConnection(System::DirectoryServices::Protocols::DsmlDirectoryIdentifier ^ identifier, System::Net::NetworkCredential ^ credential);
public DsmlSoapHttpConnection (System.DirectoryServices.Protocols.DsmlDirectoryIdentifier identifier, System.Net.NetworkCredential credential);
new System.DirectoryServices.Protocols.DsmlSoapHttpConnection : System.DirectoryServices.Protocols.DsmlDirectoryIdentifier * System.Net.NetworkCredential -> System.DirectoryServices.Protocols.DsmlSoapHttpConnection
Public Sub New (identifier As DsmlDirectoryIdentifier, credential As NetworkCredential)

參數

identifier
DsmlDirectoryIdentifier

連接的伺服器。

credential
NetworkCredential

網路認證。

例外狀況

identifier 是 null (在 Visual Basic 中為 Nothing)。

適用於

DsmlSoapHttpConnection(DsmlDirectoryIdentifier, NetworkCredential, AuthType)

使用指定的標識碼、網路認證和驗證類型,初始化 類別的新實例 DsmlSoapHttpConnection

public:
 DsmlSoapHttpConnection(System::DirectoryServices::Protocols::DsmlDirectoryIdentifier ^ identifier, System::Net::NetworkCredential ^ credential, System::DirectoryServices::Protocols::AuthType authType);
public DsmlSoapHttpConnection (System.DirectoryServices.Protocols.DsmlDirectoryIdentifier identifier, System.Net.NetworkCredential credential, System.DirectoryServices.Protocols.AuthType authType);
new System.DirectoryServices.Protocols.DsmlSoapHttpConnection : System.DirectoryServices.Protocols.DsmlDirectoryIdentifier * System.Net.NetworkCredential * System.DirectoryServices.Protocols.AuthType -> System.DirectoryServices.Protocols.DsmlSoapHttpConnection
Public Sub New (identifier As DsmlDirectoryIdentifier, credential As NetworkCredential, authType As AuthType)

參數

identifier
DsmlDirectoryIdentifier

連接的伺服器。

credential
NetworkCredential

網路認證。

authType
AuthType

要用於此連線的驗證類型。

例外狀況

identifier 為 null 參考 (在 Visual Basic 中為 Nothing)。

authType 值不是其中一個 DSML 支援的值。 DSML 只支援匿名、NTLM、基本、交涉和摘要。

authType 值不是 AuthType 列舉型別中定義的其中一個常數。

適用於