TestConnectionCommand Class

The Test-Connection cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This class 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

Syntax

'Declaration
<OutputTypeAttribute(System.Compiler.TypeNode[])> _
<OutputTypeAttribute(System.String[])> _
<CmdletAttribute("Test", "Connection", DefaultParameterSetName:="Default", HelpUri:="https://go.microsoft.com/fwlink/?LinkID=135266", RemotingCapability:=RemotingCapability.OwnedByCommand)> _
Public Class TestConnectionCommand
    Inherits PSCmdlet
    Implements IDisposable
[OutputTypeAttribute(System.Compiler.TypeNode[])] 
[OutputTypeAttribute(System.String[])] 
[CmdletAttribute("Test", "Connection", DefaultParameterSetName="Default", HelpUri="https://go.microsoft.com/fwlink/?LinkID=135266", RemotingCapability=RemotingCapability.OwnedByCommand)] 
public class TestConnectionCommand : PSCmdlet, IDisposable
[OutputTypeAttribute(System.Compiler.TypeNode[])] 
[OutputTypeAttribute(System.String[])] 
[CmdletAttribute(L"Test", L"Connection", DefaultParameterSetName=L"Default", HelpUri=L"https://go.microsoft.com/fwlink/?LinkID=135266", RemotingCapability=RemotingCapability::OwnedByCommand)] 
public ref class TestConnectionCommand : public PSCmdlet, IDisposable
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[]) */ 
/** @attribute OutputTypeAttribute(System.String[]) */ 
/** @attribute CmdletAttribute("Test", "Connection", DefaultParameterSetName="Default", HelpUri="https://go.microsoft.com/fwlink/?LinkID=135266", RemotingCapability=RemotingCapability.OwnedByCommand) */ 
public class TestConnectionCommand extends PSCmdlet implements IDisposable
OutputTypeAttribute(System.Compiler.TypeNode[]) 
OutputTypeAttribute(System.String[]) 
CmdletAttribute("Test", "Connection", DefaultParameterSetName="Default", HelpUri="https://go.microsoft.com/fwlink/?LinkID=135266", RemotingCapability=RemotingCapability.OwnedByCommand) 
public class TestConnectionCommand extends PSCmdlet implements IDisposable

Remarks

This cmdlet sends ICMP echo request packets ("pings") to one or more computers. 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

Inheritance Hierarchy

System.Object
   System.Management.Automation.Internal.InternalCommand
     System.Management.Automation.Cmdlet
       System.Management.Automation.PSCmdlet
        Microsoft.PowerShell.Commands.TestConnectionCommand

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 Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK