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







    Clone(Boolean) Method
    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)

    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