IPHostEntry.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / IPHostEntry.cs / 1305376 / IPHostEntry.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Net { 
 
// Host information
    ///  
    ///    Provides a container class for Internet host address information..
    /// 
    public class IPHostEntry {
        string hostName; 
        string[] aliases;
        IPAddress[] addressList; 
 
        /// 
        ///     
        ///       Contains the DNS
        ///       name of the host.
        ///    
        ///  
        /// 
        ///  
        public string HostName { 
            get {
                return hostName; 
            }
            set {
                hostName = value;
            } 
        }
 
        ///  
        ///    
        ///       Provides an 
        ///       array of strings containing other DNS names that resolve to the IP addresses
        ///       in .
        ///    
        ///  
        /// 
        ///  
        public string[] Aliases { 
            get {
                return aliases; 
            }
            set {
                aliases = value;
            } 
        }
 
        ///  
        ///    
        ///       Provides an 
        ///       array of  objects.
        ///    
        /// 
        ///  
        /// 
        public IPAddress[] AddressList { 
            get { 
                return addressList;
            } 
            set {
                addressList = value;
            }
        } 
    } // class IPHostEntry
} // namespace System.Net 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Net { 
 
// Host information
    ///  
    ///    Provides a container class for Internet host address information..
    /// 
    public class IPHostEntry {
        string hostName; 
        string[] aliases;
        IPAddress[] addressList; 
 
        /// 
        ///     
        ///       Contains the DNS
        ///       name of the host.
        ///    
        ///  
        /// 
        ///  
        public string HostName { 
            get {
                return hostName; 
            }
            set {
                hostName = value;
            } 
        }
 
        ///  
        ///    
        ///       Provides an 
        ///       array of strings containing other DNS names that resolve to the IP addresses
        ///       in .
        ///    
        ///  
        /// 
        ///  
        public string[] Aliases { 
            get {
                return aliases; 
            }
            set {
                aliases = value;
            } 
        }
 
        ///  
        ///    
        ///       Provides an 
        ///       array of  objects.
        ///    
        /// 
        ///  
        /// 
        public IPAddress[] AddressList { 
            get { 
                return addressList;
            } 
            set {
                addressList = value;
            }
        } 
    } // class IPHostEntry
} // namespace System.Net 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK