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

Controls whether a Shallow copy or a Deep copy is to be returned







In This Topic
    Clone(Boolean) Method
    In This Topic
    Returns a copy of the DicomLabelCollection
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function Clone( _
       ByVal Deep As System.Boolean _
    ) As System.Object
    'Usage
     
    
    Dim instance As DicomLabelCollection
    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

    Controls whether a Shallow copy or a Deep copy is to be returned

    Return Value

    Remarks

    If Deep is true, then returns a Deep copy of the DicomLabelCollection, otherwise returns a Shallow copy.

    A Deep copy will have all referenced objects of all levels cloned, where a Shallow copy will only have the top level referenced objects cloned.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also