QueryForConnectionCallback Temsilci

Tanım

Temsilci QueryForConnectionCallback , kullanılabilecek önbelleğe alınmış bir bağlantı olup olmadığını belirler.

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 

Parametreler

primaryConnection
LdapConnection

LdapConnection Birincil bağlantıyı belirten bir nesne.

referralFromConnection
LdapConnection

LdapConnection Başvuruyu sağlayan bağlantıyı belirten bir nesne.

newDistinguishedName
String

String Başvurulan sunucuda istenen girdinin ayırt edici adını (DN) belirten bir nesne.

identifier
LdapDirectoryIdentifier

LdapDirectoryIdentifier Başvuruda bulunılan LDAP dizininin tanımlayıcısını belirten nesne.

credential
NetworkCredential

NetworkCredential Başvuruda bulunılan sunucuya geçirecek kimlik bilgilerini belirten bir nesne.

currentUserToken
Int64

Geçerli kullanıcının LUID değeri.

Dönüş Değeri

Kullanılabilir bir önbellek varsa, önbelleğe alınmış LdapConnection bir döndürülür. Önbelleğe alınmış bağlantı yoksa döndürülür NULL .

Uzantı Metotları

GetMethodInfo(Delegate)

Belirtilen temsilci tarafından temsil edilen yöntemi temsil eden bir nesnesi alır.

Şunlara uygulanır