예제 #1
0
        /// <summary>
        /// Gets the IPv4 statistics.
        /// </summary>
        /// <returns>An OpenNETCF.Net.NetworkInformation.IPv4InterfaceStatistics object.</returns>
        public IPv4InterfaceStatistics GetIPv4Statistics()
        {
            m_mibifRow = NetworkInterface.GetMibIfRow(Index);

            IPv4InterfaceStatistics stats = new IPv4InterfaceStatistics(m_mibifRow);

            return(stats);
        }
예제 #2
0
        /// <summary>
        /// Returns an object that describes the configuration of this network interface.
        /// </summary>
        /// <returns>
        /// An System.Net.NetworkInformation.IPInterfaceProperties object that describes
        /// this network interface.
        /// </returns>
        /// <remarks>Note that the information in the object returned by this method reflects the interfaces as of the time the array is created. This information is not updated dynamically.</remarks>
        public IPInterfaceProperties GetIPProperties()
        {
            m_adapterInfo = GetAdapterInfo(Index);
            m_mibifRow    = NetworkInterface.GetMibIfRow(Index);

            IPInterfaceProperties props = new IPInterfaceProperties(m_adapterInfo, m_mibifRow);

            return(props);
        }