Microsoft SDK for Java

SystemInformation.getNetwork

Determines whether this computer is on a network.

Syntax

public static final boolean getNetwork()

Return Value

Returns true if a network is present; otherwise, returns false.

Remarks

Use the getNetwork method to determine whether a network is available before performing network-oriented operations.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.