IVsObjectSearch.Find(UInt32, VSOBSEARCHCRITERIA[], IVsObjectList) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
搜索对象。
public:
int Find(System::UInt32 flags, cli::array <Microsoft::VisualStudio::Shell::Interop::VSOBSEARCHCRITERIA> ^ pobSrch, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList ^ % pplist);
public:
int Find(unsigned int flags, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSOBSEARCHCRITERIA> ^ pobSrch, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList ^ & pplist);
int Find(unsigned int flags, std::Array <Microsoft::VisualStudio::Shell::Interop::VSOBSEARCHCRITERIA> const & pobSrch, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsObjectList const & & pplist);
public int Find (uint flags, Microsoft.VisualStudio.Shell.Interop.VSOBSEARCHCRITERIA[] pobSrch, out Microsoft.VisualStudio.Shell.Interop.IVsObjectList pplist);
abstract member Find : uint32 * Microsoft.VisualStudio.Shell.Interop.VSOBSEARCHCRITERIA[] * IVsObjectList -> int
Public Function Find (flags As UInteger, pobSrch As VSOBSEARCHCRITERIA(), ByRef pplist As IVsObjectList) As Integer
参数
- flags
- UInt32
中用于确定如何显示结果的位标志。 使用枚举中的值构造 __VSOBSEARCHFLAGS 。
- pobSrch
- VSOBSEARCHCRITERIA[]
中指向 VSOBSEARCHCRITERIA 定义搜索的名称和其他元素的结构的指针。
- pplist
- IVsObjectList
弄指向接口的指针, IVsObjectList 该接口提供满足搜索条件的对象的访问权限。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsObjectSearch::Find(
[in] VSOBSEARCHFLAGS flags,
[in] const VSOBSEARCHCRITERIA *pobSrch,
[out,retval] IVsObjectList **ppList
);