GetNetworkInterfaces() static private méthode

static private GetNetworkInterfaces ( ) : System.Net.NetworkInformation.NetworkInterface[]
Résultat System.Net.NetworkInformation.NetworkInterface[]
Exemple #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());
        }
Exemple #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());
        }
Exemple #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
        }
Exemple #4
0
 public static NetworkInterface[] GetAllNetworkInterfaces()
 {
     new NetworkInformationPermission(NetworkInformationAccess.Read).Demand();
     return(SystemNetworkInterface.GetNetworkInterfaces());
 }