Back to Devexpress

CustomCloneObjectEventArgs.TargetObjectSpace Property

expressappframework-devexpress-dot-expressapp-dot-cloneobject-dot-customcloneobjecteventargs-3a93c6bf.md

latest2.0 KB
Original Source

CustomCloneObjectEventArgs.TargetObjectSpace Property

Specifies the Object Space of the target object.

Namespace : DevExpress.ExpressApp.CloneObject

Assembly : DevExpress.ExpressApp.CloneObject.v25.2.dll

NuGet Package : DevExpress.ExpressApp.CloneObject

Declaration

csharp
public IObjectSpace TargetObjectSpace { get; set; }
vb
Public Property TargetObjectSpace As IObjectSpace

Property Value

TypeDescription
IObjectSpace

The Object Space of the target object.

|

Remarks

The TargetObjectSpace property returns null. You should initialize it in case the cloned object is assigned to the CustomCloneObjectEventArgs.ClonedObject property.

Use the CustomCloneObjectEventArgs.CreateDefaultTargetObjectSpace method to obtain a default Object Space for the current context or use the XafApplication.CreateObjectSpace method to create a new Object Space instance.

See Also

CustomCloneObjectEventArgs Class

CustomCloneObjectEventArgs Members

DevExpress.ExpressApp.CloneObject Namespace