QueryForConnectionCallback Delegate

Definition

The QueryForConnectionCallback delegate determines whether there is a cached connection available for use.

C#
public delegate System.DirectoryServices.Protocols.LdapConnection QueryForConnectionCallback(LdapConnection primaryConnection, LdapConnection referralFromConnection, string newDistinguishedName, LdapDirectoryIdentifier identifier, NetworkCredential credential, long currentUserToken);

Parameters

primaryConnection
LdapConnection

A LdapConnection object that specifies the primary connection.

referralFromConnection
LdapConnection

A LdapConnection object that specifies the connection that provides the referral.

newDistinguishedName
String

A String object that specifies the distinguished name (DN) of the desired entry in the referred server.

identifier
LdapDirectoryIdentifier

A LdapDirectoryIdentifier object that specifies the identifier for the referred LDAP directory.

credential
NetworkCredential

A NetworkCredential object that specifies the credentials to pass to the referred server.

currentUserToken
Int64

The LUID for the current user.

Return Value

A cached LdapConnection is returned, if there is one available. If no cached connection is available, NULL is returned.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)