DirectoryServicesCOMException 构造函数

定义

初始化 DirectoryServicesCOMException 类的新实例。

重载

名称 说明
DirectoryServicesCOMException()

初始化 DirectoryServicesCOMException 类的新实例。

DirectoryServicesCOMException(String)

使用指定的字符串初始化类的新实例 DirectoryServicesCOMException

DirectoryServicesCOMException(SerializationInfo, StreamingContext)
已过时.

使用指定的序列化信息和流式处理上下文初始化类的新实例 DirectoryServicesCOMException

DirectoryServicesCOMException(String, Exception)

使用指定的字符串和异常初始化类的新实例 DirectoryServicesCOMException

DirectoryServicesCOMException()

Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs

初始化 DirectoryServicesCOMException 类的新实例。

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

适用于

DirectoryServicesCOMException(String)

Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs

使用指定的字符串初始化类的新实例 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)

Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs

注意

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);
[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);
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}")>]
new System.DirectoryServices.DirectoryServicesCOMException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.DirectoryServicesCOMException
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)

Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs
Source:
DirectoryServicesCOMException.cs

使用指定的字符串和异常初始化类的新实例 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

是当前异常原因的异常。

适用于