WorkflowAuthorizationException 建構函式

定義

初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class.

多載

WorkflowAuthorizationException()

初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class.

WorkflowAuthorizationException(String)

使用指定的訊息,初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class using the specified message.

WorkflowAuthorizationException(SerializationInfo, StreamingContext)

使用序列化的資料,初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class by using serialized data.

WorkflowAuthorizationException(String, Exception)

透過使用指定的訊息和 WorkflowAuthorizationException,初始化 Exception 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class by using the specified message and Exception.

WorkflowAuthorizationException(String, String)

使用活動的名稱和主體,初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class using the name of the activity and the principal.

WorkflowAuthorizationException()

初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class.

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

WorkflowAuthorizationException(String)

使用指定的訊息,初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class using the specified message.

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

參數

message
String

解釋例外狀況原因的錯誤訊息。The error message that explains the reason for the exception.

WorkflowAuthorizationException(SerializationInfo, StreamingContext)

使用序列化的資料,初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class by using serialized data.

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

參數

info
SerializationInfo

SerializationInfo,包含所擲回之例外狀況的相關序列化物件資料。The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

包含有關來源或目的端內容資訊的 StreamingContextThe StreamingContext that contains contextual information about the source or destination.

WorkflowAuthorizationException(String, Exception)

透過使用指定的訊息和 WorkflowAuthorizationException,初始化 Exception 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class by using the specified message and Exception.

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

參數

message
String

解釋例外狀況原因的錯誤訊息。The error message that explains the reason for the exception.

WorkflowAuthorizationException(String, String)

使用活動的名稱和主體,初始化 WorkflowAuthorizationException 類別的新執行個體。Initializes a new instance of the WorkflowAuthorizationException class using the name of the activity and the principal.

public:
 WorkflowAuthorizationException(System::String ^ activityName, System::String ^ principalName);
public WorkflowAuthorizationException (string activityName, string principalName);
new System.Workflow.Activities.WorkflowAuthorizationException : string * string -> System.Workflow.Activities.WorkflowAuthorizationException
Public Sub New (activityName As String, principalName As String)

參數

activityName
String

發生例外狀況之 Activity 的名稱。The name of the Activity in which the exception occurred.

principalName
String

使得工作流程授權例外狀況擲回的使用者或實體名稱。The name of the user or entity on whose behalf the workflow authorization exception was thrown.

適用於