The Labs \ Source Viewer \ SSCLI \ System.Net \ IPHostEntry

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IPHostEntry.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Net
  16. {
  17.    
  18.     // Host information
  19.     /// <devdoc>
  20.     /// <para>Provides a container class for Internet host address information..</para>
  21.     /// </devdoc>
  22.     public class IPHostEntry
  23.     {
  24.         string hostName;
  25.         string[] aliases;
  26.         IPAddress[] addressList;
  27.        
  28.         /// <devdoc>
  29.         /// <para>
  30.         /// Contains the DNS
  31.         /// name of the host.
  32.         /// </para>
  33.         /// </devdoc>
  34.         /// <devdoc>
  35.         /// </devdoc>
  36.         public string HostName {
  37.             get { return hostName; }
  38.             set { hostName = value; }
  39.         }
  40.        
  41.         /// <devdoc>
  42.         /// <para>
  43.         /// Provides an
  44.         /// array of strings containing other DNS names that resolve to the IP addresses
  45.         /// in <paramref name='AddressList'/>.
  46.         /// </para>
  47.         /// </devdoc>
  48.         /// <devdoc>
  49.         /// </devdoc>
  50.         public string[] Aliases {
  51.             get { return aliases; }
  52.             set { aliases = value; }
  53.         }
  54.        
  55.         /// <devdoc>
  56.         /// <para>
  57.         /// Provides an
  58.         /// array of <paramref name='IPAddress'/> objects.
  59.         /// </para>
  60.         /// </devdoc>
  61.         /// <devdoc>
  62.         /// </devdoc>
  63.         public IPAddress[] AddressList {
  64.             get { return addressList; }
  65.             set { addressList = value; }
  66.         }
  67.     }
  68.     // class IPHostEntry
  69. }
  70. // namespace System.Net

Developer Fusion