ModelingWindowPane.CountObjects 方法

窗口窗格或当前选定内容中元素数的计数。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
Public Function CountObjects ( _
    flags As UInteger, _
    <OutAttribute> ByRef count As UInteger _
) As Integer
public int CountObjects(
    uint flags,
    out uint count
)

参数

  • count
    类型:System.UInt32%
    [out]要计算的元素的个数。

返回值

类型:System.Int32
如果该方法成功,则返回S_OK。如果失败,它会返回一个错误代码。

实现

ISelectionContainer.CountObjects(UInt32, UInt32%)

.NET Framework 安全性

请参阅

参考

ModelingWindowPane 类

Microsoft.VisualStudio.Modeling.Shell 命名空间