IVsFinder::SetScope Method (IVsTextSpanSet^)
Visual Studio 2015
Restricts search to the span set.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pSpanScope
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextSpanSet^
[in] Scope of the search. Specified as an IVsTextSpanSet.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textfind.idl:
HRESULT IVsFinder::SetScope(
[in] IVsTextSpanSet * pSpanScope
);
Set pSpanScope to null to search entire image. It is an error to set a scope when there is no attached image
Show: