T
GetClonedInstance<T> Method
See Also 
SourceCode.Framework Namespace > PersistableObject Class : GetClonedInstance<T> Method



originalGuid
Guid of the original object

Glossary Item Box

Returns an instance of a cloned object based on the original guid. Use in conjuction with Cloning.

Syntax

Visual Basic (Declaration) 
Protected Function GetClonedInstance(Of T As PersistableObject)( _
   ByVal originalGuid As Guid _
) As T
Visual Basic (Usage)Copy Code
Dim instance As PersistableObject
Dim originalGuid As Guid
Dim value As T
 
value = instance.GetClonedInstance(Of T)(originalGuid)
C# 
protected T GetClonedInstance<T>( 
   Guid originalGuid
)
where T: PersistableObject
C++/CLI 
protected:
T^ GetClonedInstancegeneric<typename T>
( 
   Guid originalGuid
) 
where T: PersistableObject

Parameters

originalGuid
Guid of the original object

Type Parameters

T

Return Value

Returns a null or the cloned instance.

Remarks

The cloned instance will be returned if the object has been cloned before. If the clone did not execute in context, a null will be returned.

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