QueryForConnectionCallback Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The QueryForConnectionCallback delegate determines whether there is a cached connection available for use.
public delegate System::DirectoryServices::Protocols::LdapConnection ^ QueryForConnectionCallback(LdapConnection ^ primaryConnection, LdapConnection ^ referralFromConnection, System::String ^ newDistinguishedName, LdapDirectoryIdentifier ^ identifier, NetworkCredential ^ credential, long currentUserToken);
public delegate System.DirectoryServices.Protocols.LdapConnection QueryForConnectionCallback(LdapConnection primaryConnection, LdapConnection referralFromConnection, string newDistinguishedName, LdapDirectoryIdentifier identifier, NetworkCredential credential, long currentUserToken);
type QueryForConnectionCallback = delegate of LdapConnection * LdapConnection * string * LdapDirectoryIdentifier * NetworkCredential * int64 -> LdapConnection
Public Delegate Function QueryForConnectionCallback(primaryConnection As LdapConnection, referralFromConnection As LdapConnection, newDistinguishedName As String, identifier As LdapDirectoryIdentifier, credential As NetworkCredential, currentUserToken As Long) As LdapConnection
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈