Udostępnij za pośrednictwem


SelectionContainer.ISelectionContainer.CountObjects(UInt32, UInt32) Method

Definition

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

 virtual int Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.CountObjects(System::UInt32 dwFlags, [Runtime::InteropServices::Out] System::UInt32 % pc) = Microsoft::VisualStudio::Shell::Interop::ISelectionContainer::CountObjects;
int Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.CountObjects(unsigned int dwFlags, [Runtime::InteropServices::Out] unsigned int & pc);
int ISelectionContainer.CountObjects (uint dwFlags, out uint pc);
abstract member Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.CountObjects : uint32 * uint32 -> int
override this.Microsoft.VisualStudio.Shell.Interop.ISelectionContainer.CountObjects : uint32 * uint32 -> int
Function CountObjects (dwFlags As UInteger, ByRef pc As UInteger) As Integer Implements ISelectionContainer.CountObjects

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