InitialSessionState.Clone Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.