WorkflowAuthorizationException 构造函数

定义

初始化 WorkflowAuthorizationException 类的新实例。

重载

WorkflowAuthorizationException()

初始化 WorkflowAuthorizationException 类的新实例。

WorkflowAuthorizationException(String)

使用指定的消息初始化 WorkflowAuthorizationException 类的新实例。

WorkflowAuthorizationException(SerializationInfo, StreamingContext)

使用序列化数据初始化 WorkflowAuthorizationException 类的新实例。

WorkflowAuthorizationException(String, Exception)

使用指定的消息和 WorkflowAuthorizationException 初始化 Exception 类的新实例。

WorkflowAuthorizationException(String, String)

使用活动和主体的名称初始化 WorkflowAuthorizationException 类的新实例。

WorkflowAuthorizationException()

初始化 WorkflowAuthorizationException 类的新实例。

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

适用于

WorkflowAuthorizationException(String)

使用指定的消息初始化 WorkflowAuthorizationException 类的新实例。

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

解释异常原因的错误消息。

适用于

WorkflowAuthorizationException(SerializationInfo, StreamingContext)

使用序列化数据初始化 WorkflowAuthorizationException 类的新实例。

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

context
StreamingContext

StreamingContext,它包含关于源或目标的上下文信息。

适用于

WorkflowAuthorizationException(String, Exception)

使用指定的消息和 WorkflowAuthorizationException 初始化 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

解释异常原因的错误消息。

innerException
Exception

导致 ExceptionWorkflowAuthorizationException

适用于

WorkflowAuthorizationException(String, String)

使用活动和主体的名称初始化 WorkflowAuthorizationException 类的新实例。

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 的名称。

principalName
String

代表用户或实体引发工作流授权异常的用户或实体的名称。

适用于