NetworkState.MachineOnlineState 属性

定义

获取客户端计算机当前的连接状态。

public:
 abstract property Microsoft::Office::InfoPath::MachineState MachineOnlineState { Microsoft::Office::InfoPath::MachineState get(); };
public abstract Microsoft.Office.InfoPath.MachineState MachineOnlineState { get; }
member this.MachineOnlineState : Microsoft.Office.InfoPath.MachineState
Public MustOverride ReadOnly Property MachineOnlineState As MachineState

属性值

枚举值之一。

示例

在下面的代码示例中, MachineOnlineState 属性用于显示客户端计算机的当前连接状态。

using Microsoft.Office.InfoPath;

string networkState = 
   formControl1.XmlForm.NetworkState.MachineOnlineState.ToString();

// Display result in a message box.
MessageBox.Show("The connection state is " + networkState);
Imports Microsoft.Office.InfoPath
Dim networkState As String = _
   formControl1.XmlForm.NetworkState.MachineOnlineState.ToString()

' Display result in a message box.
MessageBox.Show("The connection state is " & networkState)

注解

可以无限制访问此成员。

可以通过 Microsoft InfoPath Filler 中打开的表单中运行的代码访问此类型或成员。

适用于