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

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