System.Net.NetworkInformation.OsxNetworkInterface.OsxNetworkInterface C# (CSharp) Méthode

OsxNetworkInterface() protected méthode

protected OsxNetworkInterface ( string name ) : System.Collections.Generic
name string
Résultat 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);
        }