다음을 통해 공유


SelectionContainer.ISelectionContainer.CountObjects Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

‘선언
Private Function CountObjects ( _
    dwFlags As UInteger, _
    <OutAttribute> ByRef pc As UInteger _
) As Integer Implements ISelectionContainer.CountObjects
‘사용 방법
Dim instance As SelectionContainer
Dim dwFlags As UInteger
Dim pc As UInteger
Dim returnValue As Integer

returnValue = CType(instance, ISelectionContainer).CountObjects(dwFlags, _
    pc)
int ISelectionContainer.CountObjects(
    uint dwFlags,
    out uint pc
)
private:
virtual int CountObjects(
    unsigned int dwFlags, 
    [OutAttribute] unsigned int% pc
) sealed = ISelectionContainer::CountObjects
private abstract CountObjects : 
        dwFlags:uint32 * 
        pc:uint32 byref -> int 
private override CountObjects : 
        dwFlags:uint32 * 
        pc:uint32 byref -> int 
JScript does not support explicit interface implementations.

Parameters

  • 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

See Also

Reference

SelectionContainer Class

SelectionContainer Members

Microsoft.VisualStudio.Shell Namespace