Example #1
0
        /// <summary>
        /// Retrieves the <see cref="NetworkConnection"/> identified by the specified connection identifier.
        /// </summary>
        /// <param name="networkConnectionId">
        /// A <see cref="System.Guid"/> that specifies the unique identifier for the network connection.
        /// </param>
        /// <returns>
        /// The <see cref="NetworkConnection"/> identified by the specified identifier.
        /// </returns>
        public static NetworkConnection GetNetworkConnection(Guid networkConnectionId)
        {
            // Throw PlatformNotSupportedException if the user is not running Vista or beyond
            //CoreHelpers.ThrowIfNotVista();

            return(new NetworkConnection(manager.GetNetworkConnection(networkConnectionId)));
        }
Example #2
0
 /// <summary>
 /// Retrieves the <see cref="Microsoft.SDK.Samples.VistaBridge.Library.Network.NetworkConnection"/> identified by the specified connection identifier.
 /// </summary>
 /// <param name="networkConnectionId">
 /// A <see cref="System.Guid"/> that specifies the unique identifier for the network connection.
 /// </param>
 /// <returns>
 /// The <see cref="Microsoft.SDK.Samples.VistaBridge.Library.Network.NetworkConnection"/> identified by the specified identifier.
 /// </returns>
 public static NetworkConnection GetNetworkConnection(Guid networkConnectionId)
 {
     return(new NetworkConnection(manager.GetNetworkConnection(networkConnectionId)));
 }