TestConnectionCommand.TimeToLive Property
Gets and sets the value of the TimeToLive parameter of the Test-Connection cmdlet. This property is introduced in Windows PowerShell 2.0.
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)
Usage
'Usage
Dim instance As TestConnectionCommand
Dim value As Integer
value = instance.TimeToLive
instance.TimeToLive = value
Syntax
'Declaration
<ParameterAttribute> _
<AliasAttribute(System.String[])> _
<ValidateRangeAttribute(1, 255)> _
Public Property TimeToLive As Integer
[ParameterAttribute]
[AliasAttribute(System.String[])]
[ValidateRangeAttribute(1, 255)]
public int TimeToLive { get; set; }
[ParameterAttribute]
[AliasAttribute(System.String[])]
[ValidateRangeAttribute(1, 255)]
public:
property int TimeToLive {
int get ();
void set (int value);
}
/** @property */
public int get_TimeToLive ()
/** @property */
public void set_TimeToLive (int value)
public function get TimeToLive () : int
public function set TimeToLive (value : int)
Property Value
An Int32 value that specifies the maximum time, in seconds, that each echo request packet ("pings") is active.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Test-Connection in the Microsoft TechNet library.
For Help at the command line, type:
get-help test-connection
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
TestConnectionCommand Class
TestConnectionCommand Members
Microsoft.PowerShell.Commands Namespace