WorkflowApplicationException 建構函式

定義

建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class.

多載

WorkflowApplicationException()

建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class.

WorkflowApplicationException(String)

使用例外狀況的文字字串描述,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with a text string description of the exception.

WorkflowApplicationException(SerializationInfo, StreamingContext)

使用擷取自序列化資料流且與此例外狀況有關的資料時所需的內容和序列化資訊,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with the context and serialization information required to retrieve data about this exception from a serialized stream.

WorkflowApplicationException(String, Exception)

使用例外狀況的文字字串描述和造成此應用程式例外狀況的其他例外狀況,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with a text string description of the exception and with an additional exception that is the cause of the application exception.

WorkflowApplicationException(String, Guid)

使用例外狀況的文字字串描述和其唯一識別碼,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with a text string description of the exception and with a unique identifier for it.

WorkflowApplicationException(String, Guid, Exception)

使用例外狀況的文字字串描述、其唯一識別碼和造成此應用程式例外狀況的其他例外狀況,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with a text string description of the exception, a unique identifier for it, and an additional exception that is the cause of the application exception.

WorkflowApplicationException()

建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class.

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

適用於

WorkflowApplicationException(String)

使用例外狀況的文字字串描述,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with a text string description of the exception.

public:
 WorkflowApplicationException(System::String ^ message);
public WorkflowApplicationException (string message);
new System.Activities.WorkflowApplicationException : string -> System.Activities.WorkflowApplicationException
Public Sub New (message As String)

參數

message
String

應用程式例外狀況的描述。A description of the application exception.

適用於

WorkflowApplicationException(SerializationInfo, StreamingContext)

使用擷取自序列化資料流且與此例外狀況有關的資料時所需的內容和序列化資訊,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with the context and serialization information required to retrieve data about this exception from a serialized stream.

protected:
 WorkflowApplicationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected WorkflowApplicationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Activities.WorkflowApplicationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Activities.WorkflowApplicationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

序列化或還原序列化應用程式例外狀況物件所需的資訊。The information required to serialize or deserialize the application exception object.

context
StreamingContext

指定之序列化資料流的來源和目的端,和其他呼叫端定義的內容。The source and destination of a given serialized stream, and an additional caller-defined context.

適用於

WorkflowApplicationException(String, Exception)

使用例外狀況的文字字串描述和造成此應用程式例外狀況的其他例外狀況,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with a text string description of the exception and with an additional exception that is the cause of the application exception.

public:
 WorkflowApplicationException(System::String ^ message, Exception ^ innerException);
public WorkflowApplicationException (string message, Exception innerException);
new System.Activities.WorkflowApplicationException : string * Exception -> System.Activities.WorkflowApplicationException
Public Sub New (message As String, innerException As Exception)

參數

message
String

應用程式例外狀況的描述。A description of the application exception.

innerException
Exception

與應用程式例外狀況有因果關係的例外狀況。An exception that has a causal relationship to the application exception.

備註

已擲回應用程式例外狀況以回應內部例外狀況,且可以使用內部例外狀況的資訊以更適當地處理錯誤。The application exception is thrown in response to the inner exception and can use information from the inner exception to handle the error more appropriately.

適用於

WorkflowApplicationException(String, Guid)

使用例外狀況的文字字串描述和其唯一識別碼,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with a text string description of the exception and with a unique identifier for it.

public:
 WorkflowApplicationException(System::String ^ message, Guid instanceId);
public WorkflowApplicationException (string message, Guid instanceId);
new System.Activities.WorkflowApplicationException : string * Guid -> System.Activities.WorkflowApplicationException
Public Sub New (message As String, instanceId As Guid)

參數

message
String

應用程式例外狀況的描述。A description of the application exception.

instanceId
Guid

全域唯一識別碼。A globally unique identifier.

適用於

WorkflowApplicationException(String, Guid, Exception)

使用例外狀況的文字字串描述、其唯一識別碼和造成此應用程式例外狀況的其他例外狀況,建立 WorkflowApplicationException 類別的新執行個體。Creates a new instance of the WorkflowApplicationException class with a text string description of the exception, a unique identifier for it, and an additional exception that is the cause of the application exception.

public:
 WorkflowApplicationException(System::String ^ message, Guid instanceId, Exception ^ innerException);
public WorkflowApplicationException (string message, Guid instanceId, Exception innerException);
new System.Activities.WorkflowApplicationException : string * Guid * Exception -> System.Activities.WorkflowApplicationException
Public Sub New (message As String, instanceId As Guid, innerException As Exception)

參數

message
String

應用程式例外狀況的描述。A description of the application exception.

instanceId
Guid

全域唯一識別碼。A globally unique identifier.

innerException
Exception

與應用程式例外狀況有因果關係的例外狀況。An exception that has a causal relationship to the application exception.

備註

已擲回應用程式例外狀況以回應內部例外狀況,且可以使用內部例外狀況的資訊以更適當地處理錯誤。The application exception is thrown in response to the inner exception and can use information from the inner exception to handle the error more appropriately.

適用於