Прочетете на английски Редактиране

Споделяне чрез


WorkflowAuthorizationException Constructors

Definition

Initializes a new instance of the WorkflowAuthorizationException class.

Overloads

WorkflowAuthorizationException()

Initializes a new instance of the WorkflowAuthorizationException class.

WorkflowAuthorizationException(String)

Initializes a new instance of the WorkflowAuthorizationException class using the specified message.

WorkflowAuthorizationException(SerializationInfo, StreamingContext)

Initializes a new instance of the WorkflowAuthorizationException class by using serialized data.

WorkflowAuthorizationException(String, Exception)

Initializes a new instance of the WorkflowAuthorizationException class by using the specified message and Exception.

WorkflowAuthorizationException(String, String)

Initializes a new instance of the WorkflowAuthorizationException class using the name of the activity and the principal.

WorkflowAuthorizationException()

Initializes a new instance of the WorkflowAuthorizationException class.

C#
public WorkflowAuthorizationException();

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WorkflowAuthorizationException(String)

Initializes a new instance of the WorkflowAuthorizationException class using the specified message.

C#
public WorkflowAuthorizationException(string message);

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WorkflowAuthorizationException(SerializationInfo, StreamingContext)

Initializes a new instance of the WorkflowAuthorizationException class by using serialized data.

C#
protected WorkflowAuthorizationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WorkflowAuthorizationException(String, Exception)

Initializes a new instance of the WorkflowAuthorizationException class by using the specified message and Exception.

C#
public WorkflowAuthorizationException(string message, Exception innerException);

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The Exception that caused the WorkflowAuthorizationException.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

WorkflowAuthorizationException(String, String)

Initializes a new instance of the WorkflowAuthorizationException class using the name of the activity and the principal.

C#
public WorkflowAuthorizationException(string activityName, string principalName);

Parameters

activityName
String

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.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1