DsmlSoapHttpConnection 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
为空引用(在 Visual Basic 中为 Nothing
)。
DSML 不支持 authType
值。 DSML 仅支持 Anonymous、Ntlm、Basic、Negotiate 和 digest。
authType
值不属于 AuthType 枚举中定义的常数。