Condividi tramite


IVsFinder.SetScope(IVsTextSpanSet) Method

Definition

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

Applies to