IVsFinder.SetScope(IVsTextSpanSet) Methode

Definition

Beschränkt die Suche auf den Spannensatz.

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

Parameter

pSpanScope
IVsTextSpanSet

[in] Bereich der Suche. Angegeben als ein IVsTextSpanSet.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Aus "textfind. idl":

HRESULT IVsFinder::SetScope(  
   [in] IVsTextSpanSet * pSpanScope  
);  

Auf pSpanScope festlegen null , um das gesamte Bild zu durchsuchen. Es ist ein Fehler, einen Bereich festzulegen, wenn kein angefügtes Bild vorhanden ist.

Gilt für