Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Restricts search to the span set.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
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
- pSpanScope
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextSpanSet
[in] Scope of the search. Specified as an IVsTextSpanSet.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.