Creates a new object that is a copy of the current instance.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As PersistableObject
Dim context As CloningContext
Dim newGuid As Guid
Dim value As T
value = instance.CloneInContext(Of T)(context, newGuid)
|
Parameters
- context
- The context.
- newGuid
- The new unique identifier.
Type Parameters
- T
- The Type to return.
Return Value
A new object that is a copy of this instance.
Exceptions
Exception | Description |
---|
System.Exception |
Unable to create Clone using the same Guid as Original.
or
|
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