Share via


DataFunctions.CloneObject Method (PIA)

Use this method to clone a SimpleList or Dictionary object. This method performs a deep copy of the cloned object, so new memory is allocated for the clone.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop
…
Public Function CloneObject(pdispSource As Object) As Object

[C#]

using Microsoft.CommerceServer.Interop;
…
public object CloneObject(objectpdispSource);

Parameters

[Visual Basic .NET]

  • pdispSource
    A reference to the SimpleList or Dictionary object to be cloned.

[C#]

  • pdispSource
    A reference to an object that is either a SimpleList or Dictionary object to be cloned.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns a reference to the SimpleList or Dictionary object clone.

[C#] This method returns an object reference that represents the SimpleList or Dictionary object clone.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

Example

[Visual Basic .NET]

' dSource and dCopy are Dictionary objects
DataFunctions df = New DataFunctions()
dCopy = df.CloneObject(dSource)

[C#]

No example available.

Requirements

Namespace: Microsoft.CommerceServer.Interop

Platforms: Windows 2000, Windows Server 2003

Assembly: mscsasphelplib (in mscsasphelplib.dll)

See Also

DataFunctions Class

DataFunctions.Locale

Copyright © 2005 Microsoft Corporation.
All rights reserved.