VsFinderClass.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
Public Overridable Function SetScope ( _
pSpanScope As IVsTextSpanSet _
) As Integer
public virtual int SetScope(
IVsTextSpanSet pSpanScope
)
public:
virtual int SetScope(
[InAttribute] IVsTextSpanSet^ pSpanScope
)
abstract SetScope :
pSpanScope:IVsTextSpanSet -> int
override SetScope :
pSpanScope:IVsTextSpanSet -> int
public 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.
Implements
IVsFinder.SetScope(IVsTextSpanSet)
.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.