Compartilhar via


IVsObjectSearch.Find Method

Searches for an object.

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

Syntax

'Declaration
Function Find ( _
    flags As UInteger, _
    pobSrch As VSOBSEARCHCRITERIA(), _
    <OutAttribute> ByRef pplist As IVsObjectList _
) As Integer
int Find(
    uint flags,
    VSOBSEARCHCRITERIA[] pobSrch,
    out IVsObjectList pplist
)
int Find(
    [InAttribute] unsigned int flags, 
    [InAttribute] array<VSOBSEARCHCRITERIA>^ pobSrch, 
    [OutAttribute] IVsObjectList^% pplist
)
abstract Find : 
        flags:uint32 * 
        pobSrch:VSOBSEARCHCRITERIA[] * 
        pplist:IVsObjectList byref -> int
function Find(
    flags : uint, 
    pobSrch : VSOBSEARCHCRITERIA[], 
    pplist : IVsObjectList
) : int

Parameters

  • flags
    Type: UInt32

    [in] Bit flags determining how to display the results. Constructed using values from the __VSOBSEARCHFLAGS enumeration.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

 HRESULT IVsObjectSearch::Find(
   [in] VSOBSEARCHFLAGS flags, 
   [in] const VSOBSEARCHCRITERIA *pobSrch, 
   [out,retval] IVsObjectList **ppList
);

.NET Framework Security

See Also

Reference

IVsObjectSearch Interface

Microsoft.VisualStudio.Shell.Interop Namespace