Muokkaa

Jaa


UpdateException Constructors

Definition

Initializes a new instance of UpdateException.

Overloads

UpdateException()

Initializes a new instance of UpdateException.

UpdateException(String)

Initializes a new instance of UpdateException with a specialized error message.

UpdateException(SerializationInfo, StreamingContext)

Initializes a new instance of UpdateException with serialized data.

UpdateException(String, Exception)

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

UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)

Initializes a new instance of the UpdateException class that uses a specified error message, a reference to the inner exception, and an enumerable collection of ObjectStateEntry objects.

Remarks

For more information about how to handle exceptions in your code, see Exception.

UpdateException()

Initializes a new instance of UpdateException.

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

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to

UpdateException(String)

Initializes a new instance of UpdateException with a specialized error message.

public:
 UpdateException(System::String ^ message);
public UpdateException (string message);
new System.Data.UpdateException : string -> System.Data.UpdateException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to

UpdateException(SerializationInfo, StreamingContext)

Initializes a new instance of UpdateException with serialized data.

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

Parameters

info
SerializationInfo

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

context
StreamingContext

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

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to

UpdateException(String, Exception)

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

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

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to

UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)

Initializes a new instance of the UpdateException class that uses a specified error message, a reference to the inner exception, and an enumerable collection of ObjectStateEntry objects.

public:
 UpdateException(System::String ^ message, Exception ^ innerException, System::Collections::Generic::IEnumerable<System::Data::Objects::ObjectStateEntry ^> ^ stateEntries);
public UpdateException (string message, Exception innerException, System.Collections.Generic.IEnumerable<System.Data.Objects.ObjectStateEntry> stateEntries);
new System.Data.UpdateException : string * Exception * seq<System.Data.Objects.ObjectStateEntry> -> System.Data.UpdateException
Public Sub New (message As String, innerException As Exception, stateEntries As IEnumerable(Of ObjectStateEntry))

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

stateEntries
IEnumerable<ObjectStateEntry>

The collection of ObjectStateEntry objects.

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to