SelectionContainer.ISelectionContainer.CountObjects(UInt32, UInt32) Method

Definition

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

C++/WinRT
int Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.CountObjects(unsigned int dwFlags, [Runtime::InteropServices::Out] unsigned int & pc);

Parameters

dwFlags
UInt32

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

pc
UInt32

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

Returns

Returns S_OK if the operation is successful.

Implements

Remarks

Throws an exception if dwFlags is not ALL or SELECTED.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022