SelectionContainer.ISelectionContainer.CountObjects Method (UInt32, UInt32)


Determines the number of objects either those SELECTED or ALL items.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

int ISelectionContainer.CountObjects(
	uint dwFlags,
	out uint pc


Type: System.UInt32

Use ALL to indicate all members and SELECTED to indicate only those selected.

Type: System.UInt32

A pointer to the number of items, this value is set by the method call.

Return Value

Type: System.Int32

Returns S_OK if the operation is successful.

Throws an exception if dwFlags is not ALL or SELECTED.

Return to top