NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CloningService.CloneGraph

Constructs a deep-copy clone of graph.

[Visual Basic]
Public Function CloneGraph( _
   ByVal graph As Object _
) As Object
[C#]
public object CloneGraph(
   object graph
);
[C++]
public: Object* CloneGraph(
   Object* graph
);
[JScript]
public function CloneGraph(
   graph : Object
) : Object;

Parameters

graph
The object graph to be serialized.

Return Value

A deep-copy clone of graph.

Exceptions

Exception Type Condition
ArgumentNullException The graph parameter is a null reference (in Visual Basic Nothing).

Remarks

If an object implements ICloneable, we call that first. After that, we use the supplied implementation of ISerializable (if such exists) and finally fall back on the default serialization mechanisms. We copy all fields, but properties are currently ignored.

See Also

CloningService Class | CloningService Members | System.Runtime.Serialization Namespace