Check whether a network is currently reachable.

Synopsis

Declared in <netbase.h>

[[nodiscard, requires_capability(0x7f2e3b6cb7c8), requires_capability(0x7f2e2a4e7488), requires_capability(0x7f2e283bb198), requires_capability(0x7f2e2226cf18), requires_capability(0x7f2e26119598), requires_capability(0x7f2e426903e8), requires_capability(0x7f2e20fbe8f8), requires_capability(0x7f2e29137938), requires_capability(0x7f2e417143c8), requires_capability(0x7f2e409b80f8), requires_capability(0x7f2e18117248), requires_capability(0x7f2e3674fd98), requires_capability(0x7f2e33b87af8), requires_capability(0x7f2e12856588), requires_capability(0x7f2e29e25968)]]
bool
Contains(Network net) const;

Return Value

True when the network is reachable.

Note

The return value should not be discarded.

Parameters

Name

Description

net

The network to test.

Created with MrDocs