DirectoryException 构造函数

定义

DirectoryException() 构造函数创建 DirectoryException 类的实例。

重载

DirectoryException()

DirectoryException() 构造函数创建 DirectoryException 类的实例。

DirectoryException(String)

DirectoryException(String) 构造函数使用指定的参数创建 DirectoryException 类的实例。

DirectoryException(SerializationInfo, StreamingContext)
已过时.

DirectoryException(SerializationInfo, StreamingContext) 构造函数使用指定的序列化信息和流上下文信息创建 DirectoryException 类的实例。

DirectoryException(String, Exception)

DirectoryException(String, Exception) 构造函数使用指定的参数创建 DirectoryException 类的实例。

DirectoryException()

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

DirectoryException() 构造函数创建 DirectoryException 类的实例。

public:
 DirectoryException();
public DirectoryException ();
Public Sub New ()

适用于

DirectoryException(String)

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

DirectoryException(String) 构造函数使用指定的参数创建 DirectoryException 类的实例。

public:
 DirectoryException(System::String ^ message);
public DirectoryException (string message);
new System.DirectoryServices.Protocols.DirectoryException : string -> System.DirectoryServices.Protocols.DirectoryException
Public Sub New (message As String)

参数

message
String

引发异常时显示到客户端的消息。

适用于

DirectoryException(SerializationInfo, StreamingContext)

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

DirectoryException(SerializationInfo, StreamingContext) 构造函数使用指定的序列化信息和流上下文信息创建 DirectoryException 类的实例。

protected:
 DirectoryException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DirectoryException (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 DirectoryException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.DirectoryServices.Protocols.DirectoryException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.DirectoryException
[<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.DirectoryException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.DirectoryException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

有关引发的异常的序列化对象数据。

context
StreamingContext

关于来源和目标的上下文信息

属性

适用于

DirectoryException(String, Exception)

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

DirectoryException(String, Exception) 构造函数使用指定的参数创建 DirectoryException 类的实例。

public:
 DirectoryException(System::String ^ message, Exception ^ inner);
public DirectoryException (string message, Exception inner);
new System.DirectoryServices.Protocols.DirectoryException : string * Exception -> System.DirectoryServices.Protocols.DirectoryException
Public Sub New (message As String, inner As Exception)

参数

message
String

引发异常时显示到客户端的消息。

inner
Exception

引发异常的 InnerException(如果有)。

适用于