GetNetworkInterfaces() static private method

static private GetNetworkInterfaces ( ) : System.Net.NetworkInformation.NetworkInterface[]
return System.Net.NetworkInformation.NetworkInterface[]
コード例 #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());
        }
コード例 #2
0
ファイル: NetworkInterface.cs プロジェクト: zhufengGNSS/mono
        /// 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());
        }
コード例 #3
0
ファイル: NetworkInterface.cs プロジェクト: kfiliks/mono-1
        /// 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
        }
コード例 #4
0
 public static NetworkInterface[] GetAllNetworkInterfaces()
 {
     new NetworkInformationPermission(NetworkInformationAccess.Read).Demand();
     return(SystemNetworkInterface.GetNetworkInterfaces());
 }