TestConnectionCommand.TargetName Property
Definition
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.
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