語言

DsmlSoapHttpConnection 建構函式

定義

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

多載

名稱 Description
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 在 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 在 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 在 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

此連線所用的認證類型。

例外狀況

是一個空參考()。

authType 值並非DSML支援的值之一。 DSML 僅支援 Anonymous、Ntlm、Basic、Negotiate 和 digest。

authType 值並非列舉中定義 AuthType 的常數之一。

適用於