UniquenessConstraintException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new UniquenessConstraintException object.
Overloads
UniquenessConstraintException() |
Initializes a new UniquenessConstraintException object. |
UniquenessConstraintException(String) |
Initializes a new UniquenessConstraintException object by specifying the error message that describes the current exception. |
UniquenessConstraintException(SerializationInfo, StreamingContext) |
Initializes a new UniquenessConstraintException object with serialized data. |
UniquenessConstraintException(String, Exception) |
Initializes a new UniquenessConstraintException object with an error message and inner exception. |
UniquenessConstraintException()
Initializes a new UniquenessConstraintException object.
public:
UniquenessConstraintException();
public UniquenessConstraintException ();
Public Sub New ()
Applies to
UniquenessConstraintException(String)
Initializes a new UniquenessConstraintException object by specifying the error message that describes the current exception.
public:
UniquenessConstraintException(System::String ^ description);
public UniquenessConstraintException (string description);
new Microsoft.EnterpriseManagement.Common.UniquenessConstraintException : string -> Microsoft.EnterpriseManagement.Common.UniquenessConstraintException
Public Sub New (description As String)
Parameters
- description
- String
The error message that describes the current exception.
Applies to
UniquenessConstraintException(SerializationInfo, StreamingContext)
Initializes a new UniquenessConstraintException object with serialized data.
protected:
UniquenessConstraintException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected UniquenessConstraintException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new Microsoft.EnterpriseManagement.Common.UniquenessConstraintException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EnterpriseManagement.Common.UniquenessConstraintException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Parameters
- serializationInfo
- SerializationInfo
The SerializationInfo object that holds the serialized object data about the exception being thrown.
- streamingContext
- StreamingContext
The StreamingContext object that contains contextual information about the source or destination.
Remarks
This constructor is called during deserialization to reconstitute the exception object that is transmitted over a stream.
Applies to
UniquenessConstraintException(String, Exception)
Initializes a new UniquenessConstraintException object with an error message and inner exception.
public:
UniquenessConstraintException(System::String ^ description, Exception ^ innerException);
public UniquenessConstraintException (string description, Exception innerException);
new Microsoft.EnterpriseManagement.Common.UniquenessConstraintException : string * Exception -> Microsoft.EnterpriseManagement.Common.UniquenessConstraintException
Public Sub New (description As String, innerException As Exception)
Parameters
- description
- String
The error message that describes the current exception.
- innerException
- Exception
The Exception instance that caused the current exception.