DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSetCollection Class / Clone Method / Clone(Boolean) Method

Boolean value, if true then returns a Deep copy of the DicomDataSetCollection.

If false, returns a Shallow copy.







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

    Parameters

    Deep

    Boolean value, if true then returns a Deep copy of the DicomDataSetCollection.

    If false, returns a Shallow copy.

    Return Value

    Remarks

    This method makes either a Shallow Copy or a Deep Copy of the DicomDataSetCollection, 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 DicomDataSetCollection and the cloned copy.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also