Partager via


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

'Déclaration
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

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

See Also

Reference

ITextSearchService Interface

Microsoft.VisualStudio.Text.Operations Namespace