DsmlSoapHttpConnection Constructors

Definition

Initializes a new instance of the DsmlSoapHttpConnection class.

Overloads

DsmlSoapHttpConnection(DsmlDirectoryIdentifier)

Initializes a new instance of the DsmlSoapHttpConnection class.

DsmlSoapHttpConnection(Uri)

Initializes a new instance of the DsmlSoapHttpConnection class.

DsmlSoapHttpConnection(DsmlDirectoryIdentifier, NetworkCredential)

Initializes a new instance of the DsmlSoapHttpConnection class.

DsmlSoapHttpConnection(DsmlDirectoryIdentifier, NetworkCredential, AuthType)

Initializes a new instance of the DsmlSoapHttpConnection class using the specified identifier, network credentials, and authentication type.

DsmlSoapHttpConnection(DsmlDirectoryIdentifier)

Initializes a new instance of the DsmlSoapHttpConnection class.

public DsmlSoapHttpConnection (System.DirectoryServices.Protocols.DsmlDirectoryIdentifier identifier);

Parameters

identifier
DsmlDirectoryIdentifier

An object that specifies the server for the connection.

Exceptions

identifier is null (Nothing in Visual Basic).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DsmlSoapHttpConnection(Uri)

Initializes a new instance of the DsmlSoapHttpConnection class.

public DsmlSoapHttpConnection (Uri uri);

Parameters

uri
Uri

The server for the connection.

Exceptions

uri is null (Nothing in Visual Basic).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DsmlSoapHttpConnection(DsmlDirectoryIdentifier, NetworkCredential)

Initializes a new instance of the DsmlSoapHttpConnection class.

public DsmlSoapHttpConnection (System.DirectoryServices.Protocols.DsmlDirectoryIdentifier identifier, System.Net.NetworkCredential credential);

Parameters

identifier
DsmlDirectoryIdentifier

The server for the connection.

credential
NetworkCredential

The network credentials.

Exceptions

identifier is null (Nothing in Visual Basic).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DsmlSoapHttpConnection(DsmlDirectoryIdentifier, NetworkCredential, AuthType)

Initializes a new instance of the DsmlSoapHttpConnection class using the specified identifier, network credentials, and authentication type.

public DsmlSoapHttpConnection (System.DirectoryServices.Protocols.DsmlDirectoryIdentifier identifier, System.Net.NetworkCredential credential, System.DirectoryServices.Protocols.AuthType authType);

Parameters

identifier
DsmlDirectoryIdentifier

The server for the connection.

credential
NetworkCredential

The network credentials.

authType
AuthType

The authentication type to use for this connection.

Exceptions

identifier is a null reference (Nothing in Visual Basic).

authType value is not one of the DSML supported values. DSML only supports Anonymous, Ntlm, Basic, Negotiate and digest.

authType value is not one of the constants defined in the AuthType enumeration.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1