LdapException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
构造 LdapException() 函数创建类的 LdapException 实例。
重载
| 名称 | 说明 |
|---|---|
| LdapException() |
构造 LdapException() 函数创建类的 LdapException 实例。 |
| LdapException(Int32) |
构造 LdapException(Int32) 函数使用指定的错误代码创建类的 LdapException 实例。 显示给客户端的默认消息是“LDAP 服务器的通信错误”。 |
| LdapException(String) |
构造 LdapException(String) 函数使用指定的消息创建类的 LdapException 实例。 |
| LdapException(Int32, String) |
构造 LdapException(Int32, String) 函数使用指定的错误代码和消息创建类的 LdapException 实例。 |
| LdapException(SerializationInfo, StreamingContext) |
已过时.
构造 LdapException(SerializationInfo, StreamingContext) 函数使用指定的序列化数据和流式处理上下文创建类的 LdapException 实例。 |
| LdapException(String, Exception) |
构造 LdapException(String, Exception) 函数使用指定的消息和内部异常创建类的 LdapException 实例。 |
| LdapException(Int32, String, Exception) |
构造 LdapException(Int32, String, Exception) 函数使用指定的错误代码、消息和内部异常创建类的 LdapException 实例。 |
| LdapException(Int32, String, String) |
构造 LdapException(Int32, String, String) 函数使用指定的错误代码、消息和 LDAP 服务器错误消息创建类的 LdapException 实例。 |
LdapException()
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
构造 LdapException() 函数创建类的 LdapException 实例。
public:
LdapException();
public LdapException();
Public Sub New ()
适用于
LdapException(Int32)
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
构造 LdapException(Int32) 函数使用指定的错误代码创建类的 LdapException 实例。 显示给客户端的默认消息是“LDAP 服务器的通信错误”。
public:
LdapException(int errorCode);
public LdapException(int errorCode);
new System.DirectoryServices.Protocols.LdapException : int -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer)
参数
- errorCode
- Int32
LDAP 实现返回的错误代码。
适用于
LdapException(String)
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
构造 LdapException(String) 函数使用指定的消息创建类的 LdapException 实例。
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)
参数
- message
- String
发生异常时向客户端显示的消息。
适用于
LdapException(Int32, String)
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
构造 LdapException(Int32, String) 函数使用指定的错误代码和消息创建类的 LdapException 实例。
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)
参数
- errorCode
- Int32
LDAP 实现返回的错误代码。
- message
- String
发生异常时向客户端显示的消息。
适用于
LdapException(SerializationInfo, StreamingContext)
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
构造 LdapException(SerializationInfo, StreamingContext) 函数使用指定的序列化数据和流式处理上下文创建类的 LdapException 实例。
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)
参数
- info
- SerializationInfo
序列化参数所需的数据。
- context
- StreamingContext
与参数关联的序列化流的源和目标。
- 属性
适用于
LdapException(String, Exception)
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
构造 LdapException(String, Exception) 函数使用指定的消息和内部异常创建类的 LdapException 实例。
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)
参数
- message
- String
发生异常时向客户端显示的消息。
- inner
- Exception
引发异常的内部异常(如果有)。
适用于
LdapException(Int32, String, Exception)
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
构造 LdapException(Int32, String, Exception) 函数使用指定的错误代码、消息和内部异常创建类的 LdapException 实例。
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)
参数
- errorCode
- Int32
LDAP 实现返回的错误代码。
- message
- String
发生异常时向客户端显示的消息。
- inner
- Exception
引发异常的内部异常(如果有)。
适用于
LdapException(Int32, String, String)
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
- Source:
- LdapException.cs
构造 LdapException(Int32, String, String) 函数使用指定的错误代码、消息和 LDAP 服务器错误消息创建类的 LdapException 实例。
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)
参数
- errorCode
- Int32
LDAP 实现返回的错误代码。
- message
- String
发生异常时向客户端显示的消息。
- serverErrorMessage
- String
LDAP 服务器错误消息。