TestConnectionCommand.Count Property

Gets and sets the value of the Count 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.Count

instance.Count = value

Syntax

'Declaration
<ValidateRangeAttribute(1, 4294967295)> _
<ParameterAttribute> _
Public Property Count As Integer
[ValidateRangeAttribute(1, 4294967295)] 
[ParameterAttribute] 
public int Count { get; set; }
[ValidateRangeAttribute(1, 4294967295)] 
[ParameterAttribute] 
public:
property int Count {
    int get ();
    void set (int value);
}
/** @property */
public int get_Count ()

/** @property */
public void set_Count (int value)
public function get Count () : int

public function set Count (value : int)

Property Value

An Int32 value that specifies the number of echo requests to send. The default value is 4.

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

Other Resources

Windows PowerShell SDK