/// <summary> /// Retrieves a collection of <see cref="NetworkConnection"/> objects that represent the connections for this machine. /// </summary> /// <returns> /// A <see cref="NetworkConnectionCollection"/> containing the network connections. /// </returns> public static NetworkConnectionCollection GetNetworkConnections() { // Throw PlatformNotSupportedException if the user is not running Vista or beyond //CoreHelpers.ThrowIfNotVista(); return(new NetworkConnectionCollection(manager.GetNetworkConnections())); }
/// <summary> /// Retrieves a collection of <see cref="Microsoft.SDK.Samples.VistaBridge.Library.Network.NetworkConnection"/> objects that represent the connections for this machine. /// </summary> /// <returns> /// A <see cref="Microsoft.SDK.Samples.VistaBridge.Library.Network.NetworkConnectionCollection"/> containing the network connections. /// </returns> public static NetworkConnectionCollection GetNetworkConnections() { return(new NetworkConnectionCollection(manager.GetNetworkConnections())); }