InstanceOwnerException Constructors

Definition

Initializes an instance of the InstanceOwnerException class.

Overloads

InstanceOwnerException()

Initializes an instance of the InstanceOwnerException class.

InstanceOwnerException(String)

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

InstanceOwnerException(SerializationInfo, StreamingContext)

Initializes an instance of the InstanceOwnerException class with the serialized data.

InstanceOwnerException(String, Exception)

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

InstanceOwnerException(XName, Guid)

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

InstanceOwnerException(XName, Guid, Exception)

Initializes an instance of the InstanceOwnerException class using the XName (the combination of namespace and name) of the command, the ID of the instance owner, and the inner exception information.

InstanceOwnerException(XName, Guid, String, Exception)

Initializes an instance of the InstanceOwnerException class using the XName (the combination of namespace and name) of the command, the ID of the instance owner, error message that describes the exception, and the inner exception information.

InstanceOwnerException()

Initializes an instance of the InstanceOwnerException class.

C#
public InstanceOwnerException();

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

InstanceOwnerException(String)

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

C#
public InstanceOwnerException(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

InstanceOwnerException(SerializationInfo, StreamingContext)

Initializes an instance of the InstanceOwnerException class with the serialized data.

C#
[System.Security.SecurityCritical]
protected InstanceOwnerException(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

InstanceOwnerException(String, Exception)

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

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

Parameters

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

InstanceOwnerException(XName, Guid)

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

C#
public InstanceOwnerException(System.Xml.Linq.XName commandName, Guid instanceOwnerId);

Parameters

commandName
XName

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

instanceOwnerId
Guid

The ID of the instance owner.

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

InstanceOwnerException(XName, Guid, Exception)

Initializes an instance of the InstanceOwnerException class using the XName (the combination of namespace and name) of the command, the ID of the instance owner, and the inner exception information.

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

Parameters

commandName
XName

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

instanceOwnerId
Guid

The ID of the instance owner.

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

InstanceOwnerException(XName, Guid, String, Exception)

Initializes an instance of the InstanceOwnerException class using the XName (the combination of namespace and name) of the command, the ID of the instance owner, error message that describes the exception, and the inner exception information.

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

Parameters

commandName
XName

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

instanceOwnerId
Guid

The ID of the instance owner.

message
String

Error message that describes 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