DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomDataSet Class / Clone Method / Clone(Boolean) Method

If true then returns a Deep copy of the DicomDataSet.

If false, returns a Shallow copy.




In This Topic
    Clone(Boolean) Method
    In This Topic
    Returns a copy of the DicomDataSet
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function Clone( _
       ByVal Deep As Boolean _
    ) As Object
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim Deep As Boolean
    Dim value As Object
     
    value = instance.Clone(Deep)
    public virtual object Clone( 
       bool Deep
    )
    public:
    virtual Object^ Clone( 
       bool Deep
    ) 

    Parameters

    Deep

    If true then returns a Deep copy of the DicomDataSet.

    If false, returns a Shallow copy.

    Return Value

    Remarks

    This method makes either a Shallow Copy or a Deep Copy of the DicomDataSet, dependants on the Deep parameter.

    A shallow copy will only have the top level objects replicated, any referenced objects under the top level will be shared by the original DicomDataSet and the cloned copy.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also