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+
.NET Core 3.0+

BaseObjectSpace.IsNewObject(Object) Method

Indicates whether a specified object has been created but has not been saved to the database.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public virtual bool IsNewObject(
    object obj
)
Public Overridable Function IsNewObject(
    obj As Object
) As Boolean
public virtual bool IsNewObject(
    object obj
)
Public Overridable Function IsNewObject(
    obj As Object
) As Boolean
public virtual bool IsNewObject(
    object obj
)
Public Overridable Function IsNewObject(
    obj As Object
) As Boolean

Parameters

Name Type Description
obj Object

A object to be tested.

Parameters

Name Type Description
obj Object

A object to be tested.

Parameters

Name Type Description
obj Object

A object to be tested.

Returns

Type Description
Boolean

true if the specified object has not been yet saved to the database; otherwise, false.

Returns

Type Description
Boolean

true if the specified object has not been yet saved to the database; otherwise, false.

Returns

Type Description
Boolean

true if the specified object has not been yet saved to the database; otherwise, false.

Remarks

In BaseObjectSpace, this method always returns false, but this behavior is overridden in descendants (see EFObjectSpace.IsNewObject and XPObjectSpace.IsNewObject).

See Also