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!

Delegate.Clone

Creates a shallow copy of the Delegate.

[Visual Basic]
Overridable Public Function Clone() As Object
[C#]
public virtual object Clone();
[C++]
public: virtual Object* Clone();
[JScript]
public function Clone() : Object;

Return Value

A shallow copy of the Delegate.

Remarks

This method can be overridden by a derived class.

The clone will have the same target object, target method, and invocation list as the original Delegate.A shallow copy of an object is a copy of the object only. If the object contains references to other objects, the shallow copy will not create copies of the referred objects, but will refer to the original objects instead. On the other hand, a deep copy of an object creates a copy of the object and a copy of everything directly or indirectly referenced by that object.

See Also

Delegate Class | Delegate Members | System Namespace