Delen via


ServiceOperationBaseCommand.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(Mandatory=true, ParameterSetName="Default", Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
public string[] Name { get; set; }
member this.Name : string[] with get, set
[<System.Management.Automation.Alias(new System.String[] { "ServiceName" })>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="Default", Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)>]
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