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.v18.2.dll

Declaration

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

Parameters

Type Name Description
Object obj

A object to be tested.

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