ManagementObjectCollection.Count 属性

定义

获取指示集合中的对象数的值。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

属性值

Int32

集合中 对象的数目。

实现

注解

此属性非常昂贵 - 它需要枚举集合的所有成员。

属性值

集合中 对象的数目。

.NET Framework 安全性

对直接调用方的完全信任。 此成员不能由部分信任的代码使用。 有关详细信息,请参阅使用 部分受信任的代码中的库

适用于

另请参阅