IVsRegisterFindScope.RegisterFindScope(IVsFindScope, UInt32) Method

Definition

Registers the specified find scope for Find in Files.

public:
 int RegisterFindScope(Microsoft::VisualStudio::TextManager::Interop::IVsFindScope ^ pScope, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int RegisterFindScope(Microsoft::VisualStudio::TextManager::Interop::IVsFindScope const & pScope, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int RegisterFindScope (Microsoft.VisualStudio.TextManager.Interop.IVsFindScope pScope, out uint pdwCookie);
abstract member RegisterFindScope : Microsoft.VisualStudio.TextManager.Interop.IVsFindScope * uint32 -> int
Public Function RegisterFindScope (pScope As IVsFindScope, ByRef pdwCookie As UInteger) As Integer

Parameters

pScope
IVsFindScope

[in] The scope to use for Find in Files.

pdwCookie
UInt32

[out] Cookie for the registered find scope.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsRegisterFindScope::RegisterFindScope(  
   [in] IVsFindScope * pScope,  
   [out] DWORD_PTR * pdwCookie  
);  

Applies to