ITextSearchService.FindAll Method
Searches for all the occurrences of the search string.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Function FindAll ( _
findData As FindData _
) As Collection(Of SnapshotSpan)
Collection<SnapshotSpan> FindAll(
FindData findData
)
Collection<SnapshotSpan>^ FindAll(
FindData findData
)
abstract FindAll :
findData:FindData -> Collection<SnapshotSpan>
function FindAll(
findData : FindData
) : Collection<SnapshotSpan>
Parameters
findData
Type: Microsoft.VisualStudio.Text.Operations.FindDataThe data to use for this search.
Return Value
Type: System.Collections.ObjectModel.Collection<SnapshotSpan>
A list of all the matches, or null if no matches were found.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | findData is nulla null reference (Nothing in Visual Basic). |
ArgumentException | The UseRegularExpressions flag is set and the search string is an invalid regular expression. |
.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.