LdapException 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.
Konstruktorn LdapException() skapar en instans av LdapException klassen.
Överlagringar
| Name | Description |
|---|---|
| LdapException() |
Konstruktorn LdapException() skapar en instans av LdapException klassen. |
| LdapException(Int32) |
Konstruktorn LdapException(Int32) skapar en instans av LdapException klassen med den angivna felkoden. Standardmeddelandet som visas för klienten är "Kommunikationsfel med LDAP-servern". |
| LdapException(String) |
Konstruktorn LdapException(String) skapar en instans av LdapException klassen med det angivna meddelandet. |
| LdapException(Int32, String) |
Konstruktorn LdapException(Int32, String) skapar en instans av LdapException klassen med den angivna felkoden och meddelandet. |
| LdapException(SerializationInfo, StreamingContext) |
Föråldrad.
Konstruktorn LdapException(SerializationInfo, StreamingContext) skapar en instans av LdapException klassen med angivna serialiseringsdata och strömningskontext. |
| LdapException(String, Exception) |
Konstruktorn LdapException(String, Exception) skapar en instans av LdapException klassen med det angivna meddelandet och det inre undantaget. |
| LdapException(Int32, String, Exception) |
Konstruktorn LdapException(Int32, String, Exception) skapar en instans av LdapException klassen med den angivna felkoden, meddelandet och det inre undantaget. |
| LdapException(Int32, String, String) |
Konstruktorn LdapException(Int32, String, String) skapar en instans av klassen med hjälp av LdapException den angivna felkoden, meddelandet och LDAP-serverns felmeddelande. |
LdapException()
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
Konstruktorn LdapException() skapar en instans av LdapException klassen.
public:
LdapException();
public LdapException();
Public Sub New ()
Gäller för
LdapException(Int32)
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
Konstruktorn LdapException(Int32) skapar en instans av LdapException klassen med den angivna felkoden. Standardmeddelandet som visas för klienten är "Kommunikationsfel med LDAP-servern".
public:
LdapException(int errorCode);
public LdapException(int errorCode);
new System.DirectoryServices.Protocols.LdapException : int -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer)
Parametrar
- errorCode
- Int32
Felkoden som returnerades av LDAP-implementeringen.
Gäller för
LdapException(String)
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
Konstruktorn LdapException(String) skapar en instans av LdapException klassen med det angivna meddelandet.
public:
LdapException(System::String ^ message);
public LdapException(string message);
new System.DirectoryServices.Protocols.LdapException : string -> System.DirectoryServices.Protocols.LdapException
Public Sub New (message As String)
Parametrar
- message
- String
Meddelandet visas för klienten när undantaget inträffar.
Gäller för
LdapException(Int32, String)
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
Konstruktorn LdapException(Int32, String) skapar en instans av LdapException klassen med den angivna felkoden och meddelandet.
public:
LdapException(int errorCode, System::String ^ message);
public LdapException(int errorCode, string message);
new System.DirectoryServices.Protocols.LdapException : int * string -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer, message As String)
Parametrar
- errorCode
- Int32
Felkoden som returnerades av LDAP-implementeringen.
- message
- String
Meddelandet visas för klienten när undantaget inträffar.
Gäller för
LdapException(SerializationInfo, StreamingContext)
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
Varning
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Konstruktorn LdapException(SerializationInfo, StreamingContext) skapar en instans av LdapException klassen med angivna serialiseringsdata och strömningskontext.
protected:
LdapException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected LdapException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected LdapException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.DirectoryServices.Protocols.LdapException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.LdapException
new System.DirectoryServices.Protocols.LdapException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.LdapException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parametrar
- info
- SerializationInfo
Data som krävs för att serialisera parametern.
- context
- StreamingContext
Källan och målet för den serialiserade dataström som är associerad med parametern.
- Attribut
Gäller för
LdapException(String, Exception)
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
Konstruktorn LdapException(String, Exception) skapar en instans av LdapException klassen med det angivna meddelandet och det inre undantaget.
public:
LdapException(System::String ^ message, Exception ^ inner);
public LdapException(string message, Exception inner);
new System.DirectoryServices.Protocols.LdapException : string * Exception -> System.DirectoryServices.Protocols.LdapException
Public Sub New (message As String, inner As Exception)
Parametrar
- message
- String
Meddelandet visas för klienten när undantaget inträffar.
- inner
- Exception
Det inre undantaget, om det finns något, som utlöste undantaget.
Gäller för
LdapException(Int32, String, Exception)
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
Konstruktorn LdapException(Int32, String, Exception) skapar en instans av LdapException klassen med den angivna felkoden, meddelandet och det inre undantaget.
public:
LdapException(int errorCode, System::String ^ message, Exception ^ inner);
public LdapException(int errorCode, string message, Exception inner);
new System.DirectoryServices.Protocols.LdapException : int * string * Exception -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer, message As String, inner As Exception)
Parametrar
- errorCode
- Int32
Felkoden som returnerades av LDAP-implementeringen.
- message
- String
Meddelandet visas för klienten när undantaget inträffar.
- inner
- Exception
Det inre undantaget, om det finns något, som utlöste undantaget.
Gäller för
LdapException(Int32, String, String)
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
- Källa:
- LdapException.cs
Konstruktorn LdapException(Int32, String, String) skapar en instans av klassen med hjälp av LdapException den angivna felkoden, meddelandet och LDAP-serverns felmeddelande.
public:
LdapException(int errorCode, System::String ^ message, System::String ^ serverErrorMessage);
public LdapException(int errorCode, string message, string serverErrorMessage);
new System.DirectoryServices.Protocols.LdapException : int * string * string -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer, message As String, serverErrorMessage As String)
Parametrar
- errorCode
- Int32
Felkoden som returnerades av LDAP-implementeringen.
- message
- String
Meddelandet visas för klienten när undantaget inträffar.
- serverErrorMessage
- String
Felmeddelandet för LDAP-servern.