Поділитися через


SaveChangesException Constructors

Definition

Overloads

SaveChangesException()

Initializes a new instance of the SaveChangesException class.

SaveChangesException(SaveChangesResultCollection)

Initializes a new instance of the SaveChangesException class using SaveChanges() method call results.

SaveChangesException(String)

Initializes a new instance of the SaveChangesException class with an error message.

SaveChangesException(Exception, SaveChangesResultCollection)

Initializes a new instance of the SaveChangesException class using an inner exception and SaveChanges() method call results.

SaveChangesException(String, SaveChangesResultCollection)

Initializes a new instance of the SaveChangesException class using an error message and SaveChanges() method call results.

SaveChangesException(String, Exception)

Initializes a new instance of the SaveChangesException class with and error message and an inner exception.

SaveChangesException(String, Exception, SaveChangesResultCollection)

Initializes a new instance of the SaveChangesException class with and error message, an inner exception, and SaveChanges() method call results.

SaveChangesException()

Initializes a new instance of the SaveChangesException class.

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

Applies to

SaveChangesException(SaveChangesResultCollection)

Initializes a new instance of the SaveChangesException class using SaveChanges() method call results.

public:
 SaveChangesException(Microsoft::Xrm::Sdk::SaveChangesResultCollection ^ results);
public SaveChangesException (Microsoft.Xrm.Sdk.SaveChangesResultCollection results);
new Microsoft.Xrm.Sdk.SaveChangesException : Microsoft.Xrm.Sdk.SaveChangesResultCollection -> Microsoft.Xrm.Sdk.SaveChangesException
Public Sub New (results As SaveChangesResultCollection)

Parameters

results
SaveChangesResultCollection

The results returned from a SaveChanges() call.

Applies to

SaveChangesException(String)

Initializes a new instance of the SaveChangesException class with an error message.

public:
 SaveChangesException(System::String ^ message);
public SaveChangesException (string message);
new Microsoft.Xrm.Sdk.SaveChangesException : string -> Microsoft.Xrm.Sdk.SaveChangesException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

SaveChangesException(Exception, SaveChangesResultCollection)

Initializes a new instance of the SaveChangesException class using an inner exception and SaveChanges() method call results.

public:
 SaveChangesException(Exception ^ innerException, Microsoft::Xrm::Sdk::SaveChangesResultCollection ^ results);
public SaveChangesException (Exception innerException, Microsoft.Xrm.Sdk.SaveChangesResultCollection results);
new Microsoft.Xrm.Sdk.SaveChangesException : Exception * Microsoft.Xrm.Sdk.SaveChangesResultCollection -> Microsoft.Xrm.Sdk.SaveChangesException
Public Sub New (innerException As Exception, results As SaveChangesResultCollection)

Parameters

innerException
Exception

The inner exception that is the cause of this exception.

results
SaveChangesResultCollection

The results returned from a SaveChanges() call.

Applies to

SaveChangesException(String, SaveChangesResultCollection)

Initializes a new instance of the SaveChangesException class using an error message and SaveChanges() method call results.

public:
 SaveChangesException(System::String ^ message, Microsoft::Xrm::Sdk::SaveChangesResultCollection ^ results);
public SaveChangesException (string message, Microsoft.Xrm.Sdk.SaveChangesResultCollection results);
new Microsoft.Xrm.Sdk.SaveChangesException : string * Microsoft.Xrm.Sdk.SaveChangesResultCollection -> Microsoft.Xrm.Sdk.SaveChangesException
Public Sub New (message As String, results As SaveChangesResultCollection)

Parameters

message
String

The error message that explains the reason for the exception.

results
SaveChangesResultCollection

The results returned from a SaveChanges() call.

Applies to

SaveChangesException(String, Exception)

Initializes a new instance of the SaveChangesException class with and error message and an inner exception.

public:
 SaveChangesException(System::String ^ message, Exception ^ exception);
public SaveChangesException (string message, Exception exception);
new Microsoft.Xrm.Sdk.SaveChangesException : string * Exception -> Microsoft.Xrm.Sdk.SaveChangesException
Public Sub New (message As String, exception As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

exception
Exception

The inner exception that is the cause of this exception.

Applies to

SaveChangesException(String, Exception, SaveChangesResultCollection)

Initializes a new instance of the SaveChangesException class with and error message, an inner exception, and SaveChanges() method call results.

public:
 SaveChangesException(System::String ^ message, Exception ^ innerException, Microsoft::Xrm::Sdk::SaveChangesResultCollection ^ results);
public SaveChangesException (string message, Exception innerException, Microsoft.Xrm.Sdk.SaveChangesResultCollection results);
new Microsoft.Xrm.Sdk.SaveChangesException : string * Exception * Microsoft.Xrm.Sdk.SaveChangesResultCollection -> Microsoft.Xrm.Sdk.SaveChangesException
Public Sub New (message As String, innerException As Exception, results As SaveChangesResultCollection)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The inner exception that is the cause of this exception.

results
SaveChangesResultCollection

The results returned from a SaveChanges() call.

Applies to