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

  • 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

See Also

Reference

ModelingWindowPane Class

Microsoft.VisualStudio.Modeling.Shell Namespace