InvokeCommandCommand.SessionName Property
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.
Specifies the name of the returned session when the InDisconnectedSession switch is used.
C++
public:
property cli::array <System::String ^> ^ SessionName { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public:
property Platform::Array <Platform::String ^> ^ SessionName { Platform::Array <Platform::String ^> ^ get(); void set(Platform::Array <Platform::String ^> ^ value); };
public string[] SessionName { get; set; }
[System.Management.Automation.Parameter(ParameterSetName="ComputerName")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathComputerName")]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string[] SessionName { get; set; }
member this.SessionName : string[] with get, set
[<System.Management.Automation.Parameter(ParameterSetName="ComputerName")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathComputerName")>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.SessionName : string[] with get, set
Public Property SessionName As String()
String[]
- Attributes
Produto | Versións |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |
Windows PowerShell | 5.1.0.0 |