Bewerken

Delen via


WorkflowOwnershipException Constructors

Definition

Initializes a new instance of the WorkflowOwnershipException class.

Overloads

WorkflowOwnershipException()

Initializes a new instance of the WorkflowOwnershipException class.

WorkflowOwnershipException(Guid)

Initializes a new instance of the WorkflowOwnershipException class by using a specified workflow instance Guid.

WorkflowOwnershipException(String)

Initializes a new instance of the WorkflowOwnershipException class by using a specified error message.

WorkflowOwnershipException(Guid, String)

Initializes a new instance of the WorkflowOwnershipException class by using a specified workflow instance Guid and a specified error message.

WorkflowOwnershipException(SerializationInfo, StreamingContext)

Initializes a new instance of the WorkflowOwnershipException class with serialized data.

WorkflowOwnershipException(String, Exception)

Initializes a new instance of the WorkflowOwnershipException class by using a specified error message and a reference to the inner exception that is the cause of this exception.

WorkflowOwnershipException(Guid, String, Exception)

Initializes a new instance of the WorkflowOwnershipException class by using a specified workflow instance Guid, a specified error message, and a reference to the inner exception that is the cause of this exception.

WorkflowOwnershipException()

Initializes a new instance of the WorkflowOwnershipException class.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error and takes into account the current system culture.

The following table shows the initial property values for an instance of WorkflowOwnershipException.

Property Value
InnerException A null reference (Nothing in Visual Basic)
Message A system-supplied localized description.
InstanceId An empty Guid.

Applies to

WorkflowOwnershipException(Guid)

Initializes a new instance of the WorkflowOwnershipException class by using a specified workflow instance Guid.

public:
 WorkflowOwnershipException(Guid instanceId);
public WorkflowOwnershipException (Guid instanceId);
new System.Workflow.Runtime.WorkflowOwnershipException : Guid -> System.Workflow.Runtime.WorkflowOwnershipException
Public Sub New (instanceId As Guid)

Parameters

instanceId
Guid

The Guid of the workflow instance for which this exception occurred.

Remarks

instanceId is equivalent to the WorkflowInstance.InstanceId property of the workflow instance. The Message property of the new instance is initialized to a system-supplied message that describes the error and takes into account the current system culture.

The following table shows the initial property values for an instance of WorkflowOwnershipException.

Property Value
InnerException A null reference (Nothing in Visual Basic)
Message A system-supplied localized description.
InstanceId The Guid of the workflow instance, specified by instanceId, for which this exception occurred.

Applies to

WorkflowOwnershipException(String)

Initializes a new instance of the WorkflowOwnershipException class by using a specified error message.

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

Parameters

message
String

The message that describes the error.

Remarks

The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. If you use this constructor you should explicitly set InstanceId before you throw the exception.

The following table shows the initial property values for an instance of WorkflowOwnershipException.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The error message string.
InstanceId An empty Guid.

Applies to

WorkflowOwnershipException(Guid, String)

Initializes a new instance of the WorkflowOwnershipException class by using a specified workflow instance Guid and a specified error message.

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

Parameters

instanceId
Guid

The Guid of the workflow instance for which this exception occurred.

message
String

The message that describes the error.

Remarks

instanceId is equivalent to the WorkflowInstance.InstanceId property of the workflow instance. The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

The following table shows the initial property values for an instance of WorkflowOwnershipException.

Property Value
InnerException A null reference (Nothing in Visual Basic)
Message The error message string.
InstanceId The Guid of the workflow instance, specified by instanceId, for which this exception occurred.

Applies to

WorkflowOwnershipException(SerializationInfo, StreamingContext)

Initializes a new instance of the WorkflowOwnershipException class with serialized data.

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

Parameters

info
SerializationInfo

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

context
StreamingContext

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

Remarks

This constructor is called during serialization to reconstitute the exception object transmitted over a stream.

For more information see XML and SOAP Serialization.

Applies to

WorkflowOwnershipException(String, Exception)

Initializes a new instance of the WorkflowOwnershipException class by using a specified error message and a reference to the inner exception that is the cause of this exception.

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

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is supplied to the constructor or a null reference (Nothing in Visual Basic) if the innerException parameter does not supply the inner exception value to the constructor. The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. If you use this constructor you should explicitly set InstanceId before you throw the exception.

The following table shows the initial property values for an instance of WorkflowOwnershipException.

Property Value
InnerException The inner exception reference.
Message The error message string.
InstanceId An empty Guid.

Applies to

WorkflowOwnershipException(Guid, String, Exception)

Initializes a new instance of the WorkflowOwnershipException class by using a specified workflow instance Guid, a specified error message, and a reference to the inner exception that is the cause of this exception.

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

Parameters

instanceId
Guid

The Guid of the workflow instance for which this exception occurred.

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is supplied to the constructor or a null reference (Nothing in Visual Basic) if the innerException parameter does not supply the inner exception value to the constructor.

instanceId is equivalent to the WorkflowInstance.InstanceId property of the workflow instance. The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

The following table shows the initial property values for an instance of WorkflowOwnershipException.

Property Value
InnerException The inner exception reference.
Message The error message string.
InstanceId The Guid of the workflow instance, specified by instanceId, for which this exception occurred.

Applies to