System.Net.NetworkInformation.OsxNetworkInterface.OsxNetworkInterface C# (CSharp) Method

OsxNetworkInterface() protected method

protected OsxNetworkInterface ( string name ) : System.Collections.Generic
name string
return System.Collections.Generic
        protected unsafe OsxNetworkInterface(string name) : base(name)
        {
            Interop.Sys.NativeIPInterfaceStatistics nativeStats;
            if (Interop.Sys.GetNativeIPInterfaceStatistics(name, out nativeStats) == -1)
            {
                throw new NetworkInformationException(SR.net_PInvokeError);
            }

            _speed = (long)nativeStats.Speed;
            _ipProperties = new OsxIpInterfaceProperties(this, (int)nativeStats.Mtu);
        }