PropertyBag.Clone Method

Definition

Creates a new copy of the collection.

Overloads

Clone()

Creates a new copy of the collection with state tracking enabled.

Clone(Boolean)

Creates a new copy of the collection with state tracking enabled, and that is optionally read-only.

Clone()

Creates a new copy of the collection with state tracking enabled.

public:
 Microsoft::Web::Management::Server::PropertyBag ^ Clone();
public Microsoft.Web.Management.Server.PropertyBag Clone ();
member this.Clone : unit -> Microsoft.Web.Management.Server.PropertyBag
Public Function Clone () As PropertyBag

Returns

A new PropertyBag object with the same contents as the original.

Applies to

Clone(Boolean)

Creates a new copy of the collection with state tracking enabled, and that is optionally read-only.

public:
 Microsoft::Web::Management::Server::PropertyBag ^ Clone(bool readOnly);
public Microsoft.Web.Management.Server.PropertyBag Clone (bool readOnly);
member this.Clone : bool -> Microsoft.Web.Management.Server.PropertyBag
Public Function Clone (readOnly As Boolean) As PropertyBag

Parameters

readOnly
Boolean

true to create a read-only copy; false to create a modifiable copy.

Returns

A new PropertyBag object with the same contents as the original.

Applies to