InstancePersistenceCommandException Constructors

Definition

Initializes an instance of the InstancePersistenceCommand class.

Overloads

InstancePersistenceCommandException()

Initializes an instance of the InstancePersistenceCommand class.

InstancePersistenceCommandException(String)

Initializes an instance of the InstancePersistenceCommand class using the error message.

InstancePersistenceCommandException(XName)

Initializes an instance of the InstancePersistenceCommand class using the XName (the combination of namespace and name) of the command.

InstancePersistenceCommandException(SerializationInfo, StreamingContext)

Initializes an instance of the InstancePersistenceCommand class using the serialized data.

InstancePersistenceCommandException(String, Exception)

Initializes an instance of the InstancePersistenceCommand class using the error message and the inner exception information.

InstancePersistenceCommandException(XName, Exception)

Initializes an instance of the InstancePersistenceCommand class using the XName (the combination of namespace and name) of the command and the inner exception information.

InstancePersistenceCommandException(XName, Guid)

Initializes an instance of the InstancePersistenceCommand class using the XName (the combination of namespace and name) of the command and the ID of the target instance against which the command was executed.

InstancePersistenceCommandException(XName, Guid, Exception)

Initializes an instance of the InstancePersistenceCommand class using the XName (the combination of namespace and name) of the command, the ID of the target instance against which the command was executed, and the inner exception information.

InstancePersistenceCommandException(XName, String, Exception)

Initializes an instance of the InstancePersistenceCommandException class using the XName (the combination of namespace and name) of the command, error message that explains the reason for the exception, and the exception that caused the current exception.

InstancePersistenceCommandException(XName, Guid, String, Exception)

Initializes an instance of the InstancePersistenceCommandException class using the XName (the combination of namespace and name) of the command, the ID of the target instance against which the command was executed, error message that explains the reason for the exception, and the exception that caused the current exception.

InstancePersistenceCommandException()

Initializes an instance of the InstancePersistenceCommand class.

C#
public InstancePersistenceCommandException();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(String)

Initializes an instance of the InstancePersistenceCommand class using the error message.

C#
public InstancePersistenceCommandException(string message);

Parameters

message
String

The reason for the exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(XName)

Initializes an instance of the InstancePersistenceCommand class using the XName (the combination of namespace and name) of the command.

C#
public InstancePersistenceCommandException(System.Xml.Linq.XName commandName);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(SerializationInfo, StreamingContext)

Initializes an instance of the InstancePersistenceCommand class using the serialized data.

C#
[System.Security.SecurityCritical]
protected InstancePersistenceCommandException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The information about the current exception.

context
StreamingContext

The contextual information about the source or destination.

Attributes

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(String, Exception)

Initializes an instance of the InstancePersistenceCommand class using the error message and the inner exception information.

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

Parameters

message
String

The reason for the exception.

innerException
Exception

The inner exception that caused the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(XName, Exception)

Initializes an instance of the InstancePersistenceCommand class using the XName (the combination of namespace and name) of the command and the inner exception information.

C#
public InstancePersistenceCommandException(System.Xml.Linq.XName commandName, Exception innerException);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

innerException
Exception

The exception that caused the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(XName, Guid)

Initializes an instance of the InstancePersistenceCommand class using the XName (the combination of namespace and name) of the command and the ID of the target instance against which the command was executed.

C#
public InstancePersistenceCommandException(System.Xml.Linq.XName commandName, Guid instanceId);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

instanceId
Guid

The ID of the target instance against which the command was executed.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(XName, Guid, Exception)

Initializes an instance of the InstancePersistenceCommand class using the XName (the combination of namespace and name) of the command, the ID of the target instance against which the command was executed, and the inner exception information.

C#
public InstancePersistenceCommandException(System.Xml.Linq.XName commandName, Guid instanceId, Exception innerException);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

instanceId
Guid

The ID of the target instance against which the command was executed.

innerException
Exception

The exception that caused the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(XName, String, Exception)

Initializes an instance of the InstancePersistenceCommandException class using the XName (the combination of namespace and name) of the command, error message that explains the reason for the exception, and the exception that caused the current exception.

C#
public InstancePersistenceCommandException(System.Xml.Linq.XName commandName, string message, Exception innerException);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

message
String

The reason for the exception.

innerException
Exception

The exception that caused the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

InstancePersistenceCommandException(XName, Guid, String, Exception)

Initializes an instance of the InstancePersistenceCommandException class using the XName (the combination of namespace and name) of the command, the ID of the target instance against which the command was executed, error message that explains the reason for the exception, and the exception that caused the current exception.

C#
public InstancePersistenceCommandException(System.Xml.Linq.XName commandName, Guid instanceId, string message, Exception innerException);

Parameters

commandName
XName

The XName (the combination of namespace and name) of the command.

instanceId
Guid

The ID of the target instance against which the command was executed.

message
String

The reason for the exception.

innerException
Exception

The exception that caused the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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