ITextSearchService.FindNext 메서드
검색 문자열의 다음 일치 항목을 검색합니다.
네임스페이스: Microsoft.VisualStudio.Text.Operations
어셈블리: Microsoft.VisualStudio.Text.Logic(Microsoft.VisualStudio.Text.Logic.dll)
구문
‘선언
Function FindNext ( _
startIndex As Integer, _
wraparound As Boolean, _
findData As FindData _
) As Nullable(Of SnapshotSpan)
Nullable<SnapshotSpan> FindNext(
int startIndex,
bool wraparound,
FindData findData
)
Nullable<SnapshotSpan> FindNext(
int startIndex,
bool wraparound,
FindData findData
)
abstract FindNext :
startIndex:int *
wraparound:bool *
findData:FindData -> Nullable<SnapshotSpan>
function FindNext(
startIndex : int,
wraparound : boolean,
findData : FindData
) : Nullable<SnapshotSpan>
매개 변수
startIndex
형식: Int32검색을 시작할 인덱스입니다.
wraparound
형식: Boolean검색할 때 버퍼 끝에 도달하면 버퍼 처음으로 래핑할지 여부를 확인합니다.
findData
형식: Microsoft.VisualStudio.Text.Operations.FindData이 검색에 사용할 데이터입니다.
반환 값
형식: Nullable<SnapshotSpan>
SnapshotSpan 일치 하는 항목이 있으면 해당 항목이 포함 된 또는 nullNull 참조(Visual Basic의 경우 Nothing) 없음 일치 하는 항목이 발견 되는 경우.
예외
예외 | 조건 |
---|---|
ArgumentNullException | findData가 nullNull 참조(Visual Basic의 경우 Nothing)입니다. |
ArgumentOutOfRangeException | startIndex0 보다 작거나 데이터의 길이입니다. |
ArgumentException | UseRegularExpressions 플래그가 설정 되 고 잘못 된 정규식 검색 문자열입니다. |
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.