Compartilhar via


IVsFinder.SetScope Method

Restricts search to the span set.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaração
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

Parameters

Return Value

Type: System.Int32
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 nulla null reference (Nothing in Visual Basic) to search entire image. It is an error to set a scope when there is no attached image

.NET Framework Security

See Also

Reference

IVsFinder Interface

Microsoft.VisualStudio.TextManager.Interop Namespace