LdapConnection Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en instans av LdapConnection klassen.
Överlagringar
| Name | Description |
|---|---|
| LdapConnection(LdapDirectoryIdentifier) |
Konstruktorn LdapConnection(LdapDirectoryIdentifier) skapar en instans av LdapConnection klassen med den angivna katalogidentifieraren. Inloggningsuppgifterna och Negotiate Authentication används för att ansluta till LDAP-servern. |
| LdapConnection(String) |
Konstruktorn LdapConnection(String) skapar en instans av klassen med hjälp av LdapConnection den angivna servern. |
| LdapConnection(LdapDirectoryIdentifier, NetworkCredential) |
Konstruktorn LdapConnection(LdapDirectoryIdentifier, NetworkCredential) skapar en instans av LdapConnection klassen med den angivna katalogidentifieraren och autentiseringsuppgifterna för nätverket. Negotiate Authentication används. |
| LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) |
Konstruktorn LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) skapar en instans av LdapConnection klassen med den angivna katalogidentifieraren, nätverksautentiseringsuppgifterna och autentiseringstypen. |
LdapConnection(LdapDirectoryIdentifier)
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
Konstruktorn LdapConnection(LdapDirectoryIdentifier) skapar en instans av LdapConnection klassen med den angivna katalogidentifieraren. Inloggningsuppgifterna och Negotiate Authentication används för att ansluta till LDAP-servern.
public:
LdapConnection(System::DirectoryServices::Protocols::LdapDirectoryIdentifier ^ identifier);
public LdapConnection(System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier);
new System.DirectoryServices.Protocols.LdapConnection : System.DirectoryServices.Protocols.LdapDirectoryIdentifier -> System.DirectoryServices.Protocols.LdapConnection
Public Sub New (identifier As LdapDirectoryIdentifier)
Parametrar
- identifier
- LdapDirectoryIdentifier
Ett LdapDirectoryIdentifier objekt som anger servern.
Undantag
Det gick inte att skapa ett anslutningsblock eller öppna en anslutning till servern.
Gäller för
LdapConnection(String)
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
Konstruktorn LdapConnection(String) skapar en instans av klassen med hjälp av LdapConnection den angivna servern.
public:
LdapConnection(System::String ^ server);
public LdapConnection(string server);
new System.DirectoryServices.Protocols.LdapConnection : string -> System.DirectoryServices.Protocols.LdapConnection
Public Sub New (server As String)
Parametrar
- server
- String
En sträng som anger servern, som kan vara ett domännamn, ett LDAP-servernamn eller prickade strängar som representerar LDAP-serverns IP-adress. Den här parametern kan också innehålla ett portnummer som avgränsas från den högra änden av strängen med ett kolon (:).
Undantag
Det gick inte att skapa ett anslutningsblock eller öppna en anslutning till servern.
Gäller för
LdapConnection(LdapDirectoryIdentifier, NetworkCredential)
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
Konstruktorn LdapConnection(LdapDirectoryIdentifier, NetworkCredential) skapar en instans av LdapConnection klassen med den angivna katalogidentifieraren och autentiseringsuppgifterna för nätverket. Negotiate Authentication används.
public:
LdapConnection(System::DirectoryServices::Protocols::LdapDirectoryIdentifier ^ identifier, System::Net::NetworkCredential ^ credential);
public LdapConnection(System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier, System.Net.NetworkCredential credential);
new System.DirectoryServices.Protocols.LdapConnection : System.DirectoryServices.Protocols.LdapDirectoryIdentifier * System.Net.NetworkCredential -> System.DirectoryServices.Protocols.LdapConnection
Public Sub New (identifier As LdapDirectoryIdentifier, credential As NetworkCredential)
Parametrar
- identifier
- LdapDirectoryIdentifier
Ett LdapDirectoryIdentifier objekt som anger servern.
- credential
- NetworkCredential
Ett NetworkCredential objekt som anger vilka autentiseringsuppgifter som ska användas.
Undantag
Det gick inte att skapa ett anslutningsblock eller öppna en anslutning till servern.
Gäller för
LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType)
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
- Källa:
- LdapConnection.cs
Konstruktorn LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) skapar en instans av LdapConnection klassen med den angivna katalogidentifieraren, nätverksautentiseringsuppgifterna och autentiseringstypen.
public:
LdapConnection(System::DirectoryServices::Protocols::LdapDirectoryIdentifier ^ identifier, System::Net::NetworkCredential ^ credential, System::DirectoryServices::Protocols::AuthType authType);
public LdapConnection(System.DirectoryServices.Protocols.LdapDirectoryIdentifier identifier, System.Net.NetworkCredential credential, System.DirectoryServices.Protocols.AuthType authType);
new System.DirectoryServices.Protocols.LdapConnection : System.DirectoryServices.Protocols.LdapDirectoryIdentifier * System.Net.NetworkCredential * System.DirectoryServices.Protocols.AuthType -> System.DirectoryServices.Protocols.LdapConnection
Public Sub New (identifier As LdapDirectoryIdentifier, credential As NetworkCredential, authType As AuthType)
Parametrar
- identifier
- LdapDirectoryIdentifier
Ett LdapDirectoryIdentifier objekt som anger servern.
- credential
- NetworkCredential
Ett NetworkCredential objekt som anger vilka autentiseringsuppgifter som ska användas.
Undantag
Det gick inte att skapa ett anslutningsblock eller öppna en anslutning till servern.
authType är utom räckhåll.
authType anges som Anonym men credential angivna autentiseringsuppgifter.