Delen via


TestConnectionCommand.TargetName Property

Definition

Gets or sets the destination hostname or IP address.

[System.Management.Automation.Alias(new System.String[] { "ComputerName" })]
[System.Management.Automation.Parameter(Mandatory=true, Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string[]? TargetName { get; set; }
[System.Management.Automation.Alias(new System.String[] { "ComputerName" })]
[System.Management.Automation.Parameter(Mandatory=true, Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 2, 1 })]
public string[]? TargetName { get; set; }
[<System.Management.Automation.Alias(new System.String[] { "ComputerName" })>]
[<System.Management.Automation.Parameter(Mandatory=true, Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.TargetName : string[] with get, set
[<System.Management.Automation.Alias(new System.String[] { "ComputerName" })>]
[<System.Management.Automation.Parameter(Mandatory=true, Position=0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 2, 1 })>]
member this.TargetName : string[] with get, set
Public Property TargetName As String()

Property Value

String[]
Attributes

Applies to