다음을 통해 공유


SetServiceCommand.Status Property

Definition

The following is the definition of the input parameter "Status". This specifies what state the service should be in (e.g. Running, Stopped, Paused). If it is already in that state, do nothing. If it is not, do the appropriate action to bring about the desired result (start/stop/suspend the service) and issue an error if this cannot be achieved. Status can be Paused , Running and Stopped

public:
 property System::String ^ Status { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ Status { Platform::String ^ get(); void set(Platform::String ^ value); };
public string Status { get; set; }
[System.Management.Automation.Parameter]
[System.Management.Automation.ValidateSet(new System.String[] { "Running", "Stopped", "Paused" })]
public string Status { get; set; }
member this.Status : string with get, set
[<System.Management.Automation.Parameter>]
[<System.Management.Automation.ValidateSet(new System.String[] { "Running", "Stopped", "Paused" })>]
member this.Status : string with get, set
Public Property Status As String

Property Value

Attributes

Applies to