Κοινή χρήση μέσω


SaveChangesException Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Represents an exception that occurred when saving changes to the OrganizationServiceContext.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.Xrm.Sdk.SaveChangesException

Syntax

[SerializableAttribute]
public sealed class SaveChangesException : Exception
<SerializableAttribute>
Public NotInheritable Class SaveChangesException
    Inherits Exception

Constructors

Name Description
System_CAPS_pubmethod SaveChangesException()

Initializes a new instance of the SaveChangesException class.

System_CAPS_pubmethod SaveChangesException(Exception, SaveChangesResultCollection)

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

System_CAPS_pubmethod SaveChangesException(SaveChangesResultCollection)

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

System_CAPS_pubmethod SaveChangesException(String)

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

System_CAPS_pubmethod SaveChangesException(String, Exception)

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

System_CAPS_pubmethod SaveChangesException(String, Exception, SaveChangesResultCollection)

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

System_CAPS_pubmethod SaveChangesException(String, SaveChangesResultCollection)

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

Properties

Name Description
System_CAPS_pubproperty Data

(Inherited from Exception.)

System_CAPS_pubproperty HelpLink

(Inherited from Exception.)

System_CAPS_pubproperty HResult

(Inherited from Exception.)

System_CAPS_pubproperty InnerException

(Inherited from Exception.)

System_CAPS_pubproperty Message

(Inherited from Exception.)

System_CAPS_pubproperty Results

Gets the results from a SaveChanges method call.

System_CAPS_pubproperty Source

(Inherited from Exception.)

System_CAPS_pubproperty StackTrace

(Inherited from Exception.)

System_CAPS_pubproperty TargetSite

(Inherited from Exception.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception.(Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)

System_CAPS_pubmethod GetType()

(Inherited from Exception.)

System_CAPS_pubmethod ToString()

(Inherited from Exception.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

SaveChanges
Microsoft.Xrm.Sdk Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright