Konten ini tidak tersedia dalam bahasa Anda dan berikut adalah versi bahasa Inggris.

NetworkState class

Office 2013 and later

Provides information about the connection state of the client computer and whether a connection can be made to a specified network location.


Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract class NetworkState


The NetworkState class and its members are intended to be used in code that works with the FormControl, which is a managed control that is used to integrate the InfoPath form editor into a .NET-based custom application. To use the same functionality from an InfoPath form template, use the IsDestinationReachable(String) method and MachineOnlineState property of the Application class.

To access the NetworkState object associated with the current form, use the NetworkState property of the XmlForm class. To access the XmlForm class from the object model provided by the FormControl, use the XmlForm property.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.