WSManConnectionInfo.SetSessionOptions(PSSessionOption) 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.
Populates session options from a PSSessionOption instance.
public:
override void SetSessionOptions(System::Management::Automation::Remoting::PSSessionOption ^ options);
public override void SetSessionOptions (System.Management.Automation.Remoting.PSSessionOption options);
override this.SetSessionOptions : System.Management.Automation.Remoting.PSSessionOption -> unit
Public Overrides Sub SetSessionOptions (options As PSSessionOption)
Parameters
- options
- PSSessionOption
Exceptions
- Proxy credential cannot be specified when proxy accesstype is None. Either specify a valid proxy accesstype other than None or do not specify proxy credential.