ModelingWindowPane.CountObjects Method
Counts the number of elements in the window pane or in the current selection.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Public Function CountObjects ( _
flags As UInteger, _
<OutAttribute> ByRef count As UInteger _
) As Integer
public int CountObjects(
uint flags,
out uint count
)
public:
virtual int CountObjects(
unsigned int flags,
[OutAttribute] unsigned int% count
) sealed
abstract CountObjects :
flags:uint32 *
count:uint32 byref -> int
override CountObjects :
flags:uint32 *
count:uint32 byref -> int
public final function CountObjects(
flags : uint,
count : uint
) : int
Parameters
flags
Type: System.UInt321 to count all elements in the window pane (calls CountAllObjects); 2 to count only the elements that are selected in the window pane (calls CountSelectedObjects).
count
Type: System.UInt32%[out] The number of elements to count.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
ISelectionContainer.CountObjects(UInt32, UInt32%)
.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.