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



newGuid
The new unique identifier.

Glossary Item Box

Creates a new object that is a copy of the current instance with the specified new unique identifier.

Syntax

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

Parameters

newGuid
The new unique identifier.

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