$NetworkConnected

$NetworkConnected

如果你的计算机由活动的网络接口并可以发送和接收 IP 流量,则给出 True,否则为 False.

更多信息

  • $NetworkConnected 给出 True,如果你的计算机由以太网、Wi-Fi 等连接是活动的. 如果你的计算机只有没有 IP 支持的蓝牙连接,它不会给出 True.
  • $NetworkConnected 也适用于虚拟机器.

范例

基本范例  (1)

检查你的计算机是否连接任何网络:

断开所有网络后:

Wolfram Research (2017),$NetworkConnected,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$NetworkConnected.html.

文本

Wolfram Research (2017),$NetworkConnected,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$NetworkConnected.html.

CMS

Wolfram 语言. 2017. "$NetworkConnected." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/$NetworkConnected.html.

APA

Wolfram 语言. (2017). $NetworkConnected. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/$NetworkConnected.html 年

BibTeX

@misc{reference.wolfram_2024_$networkconnected, author="Wolfram Research", title="{$NetworkConnected}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/$NetworkConnected.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$networkconnected, organization={Wolfram Research}, title={$NetworkConnected}, year={2017}, url={https://reference.wolfram.com/language/ref/$NetworkConnected.html}, note=[Accessed: 21-November-2024 ]}