DsmlSoapHttpConnection 构造函数

定义

初始化 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(Nothing 在 Visual Basic 中)。

适用于

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(Nothing 在 Visual Basic 中)。

适用于

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(Nothing 在 Visual Basic 中)。

适用于

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是空引用(Visual Basic 中的 Nothing)。

authType value 不是 DSML 支持的值之一。 DSML 仅支持 Anonymous、Ntlm、Basic、Negotiate 和 digest。

authType value 不是枚举中 AuthType 定义的常量之一。

适用于