語言

ActiveDirectoryServerDownException 建構函式

定義

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

多載

名稱 Description
ActiveDirectoryServerDownException()

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

ActiveDirectoryServerDownException(String)

使用指定的錯誤訊息,初始化 ActiveDirectoryServerDownException 類別的新實例。

ActiveDirectoryServerDownException(SerializationInfo, StreamingContext)
已淘汰.

利用指定的序列化資訊與串流上下文初始化該類別的新 ActiveDirectoryServerDownException 實例。

ActiveDirectoryServerDownException(String, Exception)

初始化類別的新實例 ActiveDirectoryServerDownException ,並以指定的錯誤訊息及底層例外物件。

ActiveDirectoryServerDownException(String, Int32, String)

初始化該類別的新實例 ActiveDirectoryServerDownException ,並以指定的錯誤訊息、錯誤代碼及指定的伺服器名稱。

ActiveDirectoryServerDownException(String, Exception, Int32, String)

初始化一個新的類別實例 ActiveDirectoryServerDownException ,包含指定的錯誤訊息、底層的例外物件、指定的錯誤代碼及指定的伺服器名稱。

ActiveDirectoryServerDownException()

來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs

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

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

適用於

ActiveDirectoryServerDownException(String)

來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs

使用指定的錯誤訊息,初始化 ActiveDirectoryServerDownException 類別的新實例。

public:
 ActiveDirectoryServerDownException(System::String ^ message);
public ActiveDirectoryServerDownException(string? message);
public ActiveDirectoryServerDownException(string message);
new System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException : string -> System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException
Public Sub New (message As String)

參數

message
String

一則描述錯誤的訊息。

適用於

ActiveDirectoryServerDownException(SerializationInfo, StreamingContext)

來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs

警告

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

利用指定的序列化資訊與串流上下文初始化該類別的新 ActiveDirectoryServerDownException 實例。

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

參數

info
SerializationInfo

SerializationInfo例外的物件。

context
StreamingContext

代表 StreamingContext 例外。

屬性

另請參閱

適用於

ActiveDirectoryServerDownException(String, Exception)

來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs

初始化類別的新實例 ActiveDirectoryServerDownException ,並以指定的錯誤訊息及底層例外物件。

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

參數

message
String

一則描述錯誤的訊息。

inner
Exception

一個 Exception 包含底層異常資訊的物件。

適用於

ActiveDirectoryServerDownException(String, Int32, String)

來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs

初始化該類別的新實例 ActiveDirectoryServerDownException ,並以指定的錯誤訊息、錯誤代碼及指定的伺服器名稱。

public:
 ActiveDirectoryServerDownException(System::String ^ message, int errorCode, System::String ^ name);
public ActiveDirectoryServerDownException(string? message, int errorCode, string? name);
public ActiveDirectoryServerDownException(string message, int errorCode, string name);
new System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException : string * int * string -> System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException
Public Sub New (message As String, errorCode As Integer, name As String)

參數

message
String

一則描述錯誤的訊息。

errorCode
Int32

一個用來識別錯誤的錯誤代碼。

name
String

造成錯誤的伺服器名稱。

適用於

ActiveDirectoryServerDownException(String, Exception, Int32, String)

來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs
來源:
Exception.cs

初始化一個新的類別實例 ActiveDirectoryServerDownException ,包含指定的錯誤訊息、底層的例外物件、指定的錯誤代碼及指定的伺服器名稱。

public:
 ActiveDirectoryServerDownException(System::String ^ message, Exception ^ inner, int errorCode, System::String ^ name);
public ActiveDirectoryServerDownException(string? message, Exception? inner, int errorCode, string? name);
public ActiveDirectoryServerDownException(string message, Exception inner, int errorCode, string name);
new System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException : string * Exception * int * string -> System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException
Public Sub New (message As String, inner As Exception, errorCode As Integer, name As String)

參數

message
String

一則描述錯誤的訊息。

inner
Exception

一個 Exception 包含底層異常資訊的物件。

errorCode
Int32

一個用來識別錯誤的錯誤代碼。

name
String

造成錯誤的伺服器名稱。

適用於