IVsFinder.SetScope(IVsTextSpanSet) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Restricts search to the span set.
public:
int SetScope(Microsoft::VisualStudio::TextManager::Interop::IVsTextSpanSet ^ pSpanScope);
public:
int SetScope(Microsoft::VisualStudio::TextManager::Interop::IVsTextSpanSet ^ pSpanScope);
int SetScope(Microsoft::VisualStudio::TextManager::Interop::IVsTextSpanSet const & pSpanScope);
public int SetScope (Microsoft.VisualStudio.TextManager.Interop.IVsTextSpanSet pSpanScope);
abstract member SetScope : Microsoft.VisualStudio.TextManager.Interop.IVsTextSpanSet -> int
Public Function SetScope (pSpanScope As IVsTextSpanSet) As Integer
Parameters
- pSpanScope
- IVsTextSpanSet
[in] Scope of the search. Specified as an IVsTextSpanSet.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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