DirectoryServicesCOMException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 DirectoryServicesCOMException 类的新实例。
重载
DirectoryServicesCOMException() |
初始化 DirectoryServicesCOMException 类的新实例。 |
DirectoryServicesCOMException(String) |
使用指定的字符串初始化 DirectoryServicesCOMException 类的新实例。 |
DirectoryServicesCOMException(SerializationInfo, StreamingContext) |
已过时.
使用指定的序列化信息和流上下文初始化 DirectoryServicesCOMException 类的新实例。 |
DirectoryServicesCOMException(String, Exception) |
使用指定的字符串和异常初始化 DirectoryServicesCOMException 类的新实例。 |
DirectoryServicesCOMException()
初始化 DirectoryServicesCOMException 类的新实例。
public:
DirectoryServicesCOMException();
public DirectoryServicesCOMException ();
Public Sub New ()
适用于
DirectoryServicesCOMException(String)
使用指定的字符串初始化 DirectoryServicesCOMException 类的新实例。
public:
DirectoryServicesCOMException(System::String ^ message);
public DirectoryServicesCOMException (string message);
public DirectoryServicesCOMException (string? message);
new System.DirectoryServices.DirectoryServicesCOMException : string -> System.DirectoryServices.DirectoryServicesCOMException
Public Sub New (message As String)
参数
- message
- String
描述错误的消息。
适用于
DirectoryServicesCOMException(SerializationInfo, StreamingContext)
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用指定的序列化信息和流上下文初始化 DirectoryServicesCOMException 类的新实例。
protected:
DirectoryServicesCOMException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DirectoryServicesCOMException (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 DirectoryServicesCOMException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.DirectoryServices.DirectoryServicesCOMException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.DirectoryServicesCOMException
[<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.DirectoryServicesCOMException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.DirectoryServicesCOMException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
要填充数据的 SerializationInfo。
- context
- StreamingContext
此序列化的 StreamingContext 目标。
- 属性
适用于
DirectoryServicesCOMException(String, Exception)
使用指定的字符串和异常初始化 DirectoryServicesCOMException 类的新实例。
public:
DirectoryServicesCOMException(System::String ^ message, Exception ^ inner);
public DirectoryServicesCOMException (string message, Exception inner);
public DirectoryServicesCOMException (string? message, Exception? inner);
new System.DirectoryServices.DirectoryServicesCOMException : string * Exception -> System.DirectoryServices.DirectoryServicesCOMException
Public Sub New (message As String, inner As Exception)
参数
- message
- String
描述错误的消息。
- inner
- Exception
导致当前异常的异常。