ManagementScope.IsConnected 属性

定义

获取一个值,该值指示 ManagementScope 当前是否绑定到了某个 WMI 服务器和命名空间。Gets a value indicating whether the ManagementScope is currently bound to a WMI server and namespace.

public:
 property bool IsConnected { bool get(); };
public bool IsConnected { get; }
member this.IsConnected : bool
Public ReadOnly Property IsConnected As Boolean

属性值

Boolean

返回一个 Boolean 值,该值指示该范围当前是否绑定到了某个 WMI 服务器和命名空间。Returns a Boolean value indicating whether the scope is currently bound to a WMI server and namespace.

注解

在用户显式调用 Connect 或使用需要实时连接的任何操作的范围之后,范围会断开连接。A scope is disconnected after creation until someone explicitly calls Connect, or uses the scope for any operation that requires a live connection. 此外,只要更改了作用域的标识属性,范围就会与以前的连接断开连接。Also, the scope is disconnected from the previous connection whenever the identifying properties of the scope are changed.

属性值Property Value

true 如果连接处于活动状态 (绑定到服务器和命名空间) ,则为;否则为 falsetrue if a connection is alive (bound to a server and namespace); otherwise, false.

.NET Framework 安全性.NET Framework Security

对直接调用方的完全信任。Full trust for the immediate caller. 此成员不能由部分信任的代码使用。This member cannot be used by partially trusted code. 有关详细信息,请参阅 从部分受信任的代码使用库For more information, see Using Libraries from Partially Trusted Code.

适用于