共用方式為


DirectoryServicesCOMException 建構函式

定義

初始化 DirectoryServicesCOMException 類別的新執行個體。

多載

DirectoryServicesCOMException()

初始化 DirectoryServicesCOMException 類別的新執行個體。

DirectoryServicesCOMException(String)

使用指定的字串,初始化 DirectoryServicesCOMException 類別的新執行個體。

DirectoryServicesCOMException(SerializationInfo, StreamingContext)
已淘汰.

以指定的序列化資訊和資料流內容,將 DirectoryServicesCOMException 類別的新執行個體初始化。

DirectoryServicesCOMException(String, Exception)

使用指定的字串和例外狀況,初始化 DirectoryServicesCOMException 類別的新執行個體。

DirectoryServicesCOMException()

來源:
DirectoryServicesCOMException.cs
來源:
DirectoryServicesCOMException.cs
來源:
DirectoryServicesCOMException.cs

初始化 DirectoryServicesCOMException 類別的新執行個體。

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

適用於

DirectoryServicesCOMException(String)

來源:
DirectoryServicesCOMException.cs
來源:
DirectoryServicesCOMException.cs
來源:
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)

來源:
DirectoryServicesCOMException.cs
來源:
DirectoryServicesCOMException.cs
來源:
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);
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.cs
來源:
DirectoryServicesCOMException.cs
來源:
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

做為目前例外狀況發生原因的例外狀況。

適用於