public class TestNetConnectionResult { public string ComputerName = null; //The Remote IP address used for connectivity public System.Net.IPAddress RemoteAddress = null; //Indicates if the Ping was successful public bool PingSucceeded; //Details of the ping public System.Net.NetworkInformation.PingReply PingReplyDetails = null; //The TCP socket public System.Net.Sockets.Socket TcpClientSocket = null; //If the test succeeded public bool TcpTestSucceeded; //Remote port used public uint RemotePort; //The results of the traceroute public string[] TraceRoute = null; //An indicator to the formatter that details should be shown public bool Detailed; //Information on the interface used for connectivity public string InterfaceAlias = null; public uint InterfaceIndex; public string InterfaceDescription = null; public Microsoft.Management.Infrastructure.CimInstance NetAdapter = null; public Microsoft.Management.Infrastructure.CimInstance NetRoute = null; //Source IP address public Microsoft.Management.Infrastructure.CimInstance SourceAddress = null; //DNS information public bool NameResolutionSucceeded; public object BasicNameResolution = null; public object LLMNRNetbiosRecords = null; public object DNSOnlyRecords = null; public object AllNameResolutionResults = null; //NetSec Info public bool IsAdmin; //If the test succeeded public string NetworkIsolationContext = null; public Microsoft.Management.Infrastructure.CimInstance[] MatchingIPsecRules = null; }