The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.IsNewObject(Object, Boolean) Method

Obsolete. Indicates whether the specified persistent object is a newly created object which isn't saved in the transaction currently in progress or in any of its parent transaction (optionally).

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[Obsolete("Use IsNewObject(object theObject) instead", true)]
[Browsable(false)]
public virtual bool IsNewObject(
    object theObject,
    bool includeParent
)
<Obsolete("Use IsNewObject(object theObject) instead", True)>
<Browsable(False)>
Public Overridable Function IsNewObject(
    theObject As Object,
    includeParent As Boolean
) As Boolean
[Obsolete("Use IsNewObject(object theObject) instead", true)]
[Browsable(false)]
public virtual bool IsNewObject(
    object theObject,
    bool includeParent
)
<Obsolete("Use IsNewObject(object theObject) instead", True)>
<Browsable(False)>
Public Overridable Function IsNewObject(
    theObject As Object,
    includeParent As Boolean
) As Boolean

Parameters

Name Type Description
theObject Object

The persistent object to test.

includeParent Boolean

true to check parent transactions for the specified object; otherwise, false.

Parameters

Name Type Description
theObject Object

The persistent object to test.

includeParent Boolean

true to check parent transactions for the specified object; otherwise, false.

Returns

Type Description
Boolean

true if the specified object is a new object; otherwise, false.

Returns

Type Description
Boolean

true if the specified object is a new object; otherwise, false.

Remarks

This method checks whether the specified persistent object is a newly created object in the transaction currently in progress. It is overridden in the NestedUnitOfWork class to check parent transactions for the specified object.

See Also