共用方式為


GetServiceCommand.Name Property

Definition

gets/sets an array of service names

public:
 property cli::array <System::String ^> ^ Name { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public:
 property Platform::Array <Platform::String ^> ^ Name { Platform::Array <Platform::String ^> ^ get(); void set(Platform::Array <Platform::String ^> ^ value); };
public string[] Name { get; set; }
[System.Management.Automation.Alias(new System.String[] { "ServiceName" })]
[System.Management.Automation.Parameter(ParameterSetName="Default", Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string[] Name { get; set; }
member this.Name : string[] with get, set
[<System.Management.Automation.Alias(new System.String[] { "ServiceName" })>]
[<System.Management.Automation.Parameter(ParameterSetName="Default", Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.Name : string[] with get, set
Public Property Name As String()

Property Value

String[]
Attributes

Remarks

The ServiceName parameter is declared in subclasses, since it is optional for GetService and mandatory otherwise.

Applies to