DicomObjects.NetStandard 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 Boolean _
    ) As Object
    'Usage
     
    
    Dim instance As DicomLabelCollection
    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

    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: 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