GetNetworkInterfaces() static private method

static private GetNetworkInterfaces ( ) : System.Net.NetworkInformation.NetworkInterface[]
return System.Net.NetworkInformation.NetworkInterface[]
Ejemplo n.º 1
0
        /// Returns objects that describe the network interfaces on the local computer.
        public static NetworkInterface[] GetAllNetworkInterfaces()
        {
#if !DISABLE_CAS_USE
            (new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
#endif
            return(SystemNetworkInterface.GetNetworkInterfaces());
        }
Ejemplo n.º 2
0
        /// Returns objects that describe the network interfaces on the local computer.
        public static NetworkInterface[] GetAllNetworkInterfaces()
        {
#if FEATURE_MONO_CAS
            (new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
#endif
            return(SystemNetworkInterface.GetNetworkInterfaces());
        }
Ejemplo n.º 3
0
        /// Returns objects that describe the network interfaces on the local computer.
        public static NetworkInterface[] GetAllNetworkInterfaces()
        {
#if WASM
            throw new PlatformNotSupportedException();
#else
#if MONO_FEATURE_CAS
            (new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
#endif
            return(SystemNetworkInterface.GetNetworkInterfaces());
#endif
        }
Ejemplo n.º 4
0
 public static NetworkInterface[] GetAllNetworkInterfaces()
 {
     new NetworkInformationPermission(NetworkInformationAccess.Read).Demand();
     return(SystemNetworkInterface.GetNetworkInterfaces());
 }