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

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


WorkflowApplicationException Constructors

Definition

Creates a new instance of the WorkflowApplicationException class.

Overloads

WorkflowApplicationException()

Creates a new instance of the WorkflowApplicationException class.

WorkflowApplicationException(String)

Creates a new instance of the WorkflowApplicationException class with a text string description of the exception.

WorkflowApplicationException(SerializationInfo, StreamingContext)

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)

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)

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)

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

Creates a new instance of the WorkflowApplicationException class.

C#
public WorkflowApplicationException();

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

WorkflowApplicationException(String)

Creates a new instance of the WorkflowApplicationException class with a text string description of the exception.

C#
public WorkflowApplicationException(string message);

Parameters

message
String

A description of the application exception.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

WorkflowApplicationException(SerializationInfo, StreamingContext)

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.

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

Parameters

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.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

WorkflowApplicationException(String, Exception)

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.

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

Parameters

message
String

A description of the application exception.

innerException
Exception

An exception that has a causal relationship to the application exception.

Remarks

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.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

WorkflowApplicationException(String, Guid)

Creates a new instance of the WorkflowApplicationException class with a text string description of the exception and with a unique identifier for it.

C#
public WorkflowApplicationException(string message, Guid instanceId);

Parameters

message
String

A description of the application exception.

instanceId
Guid

A globally unique identifier.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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

WorkflowApplicationException(String, Guid, Exception)

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.

C#
public WorkflowApplicationException(string message, Guid instanceId, Exception innerException);

Parameters

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.

Remarks

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.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 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