MatchEvaluator 대리자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
메서드 작업 중에 정규식 일치를 찾을 때마다 호출되는 메서드를 Replace(String, MatchEvaluator) 나타냅니다.
public delegate System::String ^ MatchEvaluator(Match ^ match);
public delegate string MatchEvaluator(Match match);
[System.Serializable]
public delegate string MatchEvaluator(Match match);
type MatchEvaluator = delegate of Match -> string
[<System.Serializable>]
type MatchEvaluator = delegate of Match -> string
Public Delegate Function MatchEvaluator(match As Match) As String
매개 변수
- match
- Match
Match 메서드 작업 중 단일 정규식 일치를 나타내는 개체입니다Replace(String, MatchEvaluator).
반환 값
대리자가 나타내는 메서드에서 반환되는 MatchEvaluator 문자열입니다.
- 특성
설명
대리자 메서드를 MatchEvaluator 사용하여 다음과 같은 Replace(String, MatchEvaluator)대체 메서드에서 찾은 각 일치 항목에 대해 사용자 지정 확인 또는 조작 작업을 수행할 수 있습니다. 일치하는 각 문자열에 대해 메서드는 Replace(String, MatchEvaluator) 일치 항목을 MatchEvaluator 나타내는 개체를 사용하여 Match 대리자 메서드를 호출합니다. 대리자 메서드는 원하는 처리를 수행하고 메서드가 Replace(String, MatchEvaluator) 일치하는 문자열을 대체하는 문자열을 반환합니다.
확장명 메서드
| Name | Description |
|---|---|
| GetMethodInfo(Delegate) |
지정된 대리자가 나타내는 메서드를 나타내는 개체를 가져옵니다. |