Compartir a través de


ObjectNotFoundException Class

Definition

The exception that is thrown when a record does not exist.

public ref class ObjectNotFoundException sealed : Microsoft::Xrm::Sdk::SdkExceptionBase
[System.Serializable]
public sealed class ObjectNotFoundException : Microsoft.Xrm.Sdk.SdkExceptionBase
[<System.Serializable>]
type ObjectNotFoundException = class
    inherit SdkExceptionBase
Public NotInheritable Class ObjectNotFoundException
Inherits SdkExceptionBase
Inheritance
ObjectNotFoundException
Attributes

Remarks

For example, this exception should be thrown when the Retrieve SDK message specifies an EntityReference that does not exist in the data store.

Constructors

ObjectNotFoundException(EntityReference)

Initializes a new instance of the ObjectNotFoundException class with the specified entity reference.

Fields

ObjectDoesNotExistErrorCode

Applies to