Share via


IVsFinder.SetScope, méthode

Restreint la recherche au jeu d'étendues.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function SetScope ( _
    pSpanScope As IVsTextSpanSet _
) As Integer
int SetScope(
    IVsTextSpanSet pSpanScope
)
int SetScope(
    [InAttribute] IVsTextSpanSet^ pSpanScope
)
abstract SetScope : 
        pSpanScope:IVsTextSpanSet -> int
function SetScope(
    pSpanScope : IVsTextSpanSet
) : int

Paramètres

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textfind.idl :

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

Définissez pSpanScope à nullune référence null (Nothing en Visual Basic) pour rechercher l'image entière. C'est une erreur pour définir une portée lorsqu'il n'y a aucune image jointe

Sécurité .NET Framework

Voir aussi

Référence

IVsFinder Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms