T
The Type to return.
Clone<T>() Method
See Also 
SourceCode.Framework Namespace > PersistableObject Class > Clone Method : Clone<T>() Method



Glossary Item Box

Creates a new object that is a copy of the current instance.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function Clone(Of T As PersistableObject)() As T
Visual Basic (Usage)Copy Code
Dim instance As PersistableObject
Dim value As T
 
value = instance.Clone(Of T)()
C# 
public virtual T Clone<T>()
where T: PersistableObject
C++/CLI 
public:
virtual T^ Clonegeneric<typename T>
(); 
where T: PersistableObject

Type Parameters

T
The Type to return.

Return Value

A new object that is a copy of this instance.

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