namespace System.Net.NetworkInformation {
public abstract class IcmpV4Statistics {
public abstract long ErrorsReceived { get; }
public abstract long ErrorsSent { get; }
public abstract long MessagesReceived { get; }
public abstract long MessagesSent { get; }
}
public abstract class IcmpV6Statistics {
public abstract long ErrorsReceived { get; }
public abstract long ErrorsSent { get; }
public abstract long MessagesReceived { get; }
public abstract long MessagesSent { get; }
}
public abstract class IPAddressInformation {
public abstract bool IsDnsEligible { get; }
public abstract bool IsTransient { get; }
}
public abstract class IPGlobalProperties {
public abstract IPGlobalStatistics GetIPv6GlobalStatistics();
}
public abstract class IPInterfaceProperties {
public abstract IPAddressInformationCollection AnycastAddresses { get; }
public abstract IPAddressCollection DhcpServerAddresses { get; }
public abstract bool IsDnsEnabled { get; }
public abstract bool IsDynamicDnsEnabled { get; }
public abstract IPAddressCollection WinsServersAddresses { get; }
}
public abstract class IPInterfaceStatistics {
public abstract long IncomingUnknownProtocolPackets { get; }
public abstract long NonUnicastPacketsSent { get; }
public abstract long OutgoingPacketsDiscarded { get; }
}
public abstract class IPv4InterfaceProperties {
public abstract bool IsAutomaticPrivateAddressingActive { get; }
public abstract bool IsAutomaticPrivateAddressingEnabled { get; }
public abstract bool IsDhcpEnabled { get; }
public abstract bool IsForwardingEnabled { get; }
public abstract bool UsesWins { get; }
}
public abstract class IPv4InterfaceStatistics {
public abstract long OutgoingPacketsDiscarded { get; }
}
public abstract class IPv6InterfaceProperties {
public virtual long GetScopeId(ScopeLevel scopeLevel);
}
public abstract class MulticastIPAddressInformation : IPAddressInformation {
public abstract long AddressPreferredLifetime { get; }
public abstract long AddressValidLifetime { get; }
public abstract long DhcpLeaseLifetime { get; }
public abstract DuplicateAddressDetectionState DuplicateAddressDetectionState { get; }
public abstract PrefixOrigin PrefixOrigin { get; }
public abstract SuffixOrigin SuffixOrigin { get; }
}
public class NetworkChange {
public static event NetworkAddressChangedEventHandler NetworkAddressChanged;
public static event NetworkAvailabilityChangedEventHandler NetworkAvailabilityChanged;
}
public abstract class NetworkInterface {
public static int IPv6LoopbackInterfaceIndex { get; }
public static int LoopbackInterfaceIndex { get; }
}
public class Ping : Component {
+ public PingReply Send(IPAddress address, TimeSpan timeout, byte[]? buffer, PingOptions? options);
+ public PingReply Send(string hostNameOrAddress, TimeSpan timeout, byte[]? buffer, PingOptions? options);
}
public abstract class UnicastIPAddressInformation : IPAddressInformation {
public abstract long AddressPreferredLifetime { get; }
public abstract long AddressValidLifetime { get; }
public abstract long DhcpLeaseLifetime { get; }
public abstract DuplicateAddressDetectionState DuplicateAddressDetectionState { get; }
public abstract PrefixOrigin PrefixOrigin { get; }
public abstract SuffixOrigin SuffixOrigin { get; }
}
}