共用方式為


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()

來源:
DirectoryException.cs
來源:
DirectoryException.cs
來源:
DirectoryException.cs

DirectoryException() 建構函式會建立 DirectoryException 類別的執行個體。

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

適用於

DirectoryException(String)

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

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

來源:
DirectoryException.cs
來源:
DirectoryException.cs
來源:
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 (如果有的話)。

適用於