SelectionContainer.ISelectionContainer.CountObjects Method
Determines the number of objects either those SELECTED or ALL items.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaración
Private Function CountObjects ( _
dwFlags As UInteger, _
<OutAttribute> ByRef pc As UInteger _
) As Integer Implements ISelectionContainer.CountObjects
int ISelectionContainer.CountObjects(
uint dwFlags,
out uint pc
)
Parameters
- dwFlags
Type: System.UInt32
Use ALL to indicate all members and SELECTED to indicate only those selected.
- pc
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.
Implements
ISelectionContainer.CountObjects(UInt32, UInt32%)
Remarks
Throws an exception if dwFlags is not ALL or SELECTED.
.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.