Compartir a través de


InitialSessionState.Clone Method

Definition

Clone this InitialSessionState object. The collections are recursively cloned as well as the elements in the collections. Note however, that the contents of the individual entries are not deep-cloned. This is only an issue for variable entries which may have reference types. These objects will be added by reference rather than by value.

public:
 System::Management::Automation::Runspaces::InitialSessionState ^ Clone();
public System.Management.Automation.Runspaces.InitialSessionState Clone ();
member this.Clone : unit -> System.Management.Automation.Runspaces.InitialSessionState
Public Function Clone () As InitialSessionState

Returns

The cloned object.

Applies to