Share via


Match 클래스

정규식으로 찾은 단일 일치 항목의 결과를 나타냅니다.

네임스페이스: System.Text.RegularExpressions
어셈블리: System(system.dll)

구문

‘선언
<SerializableAttribute> _
Public Class Match
    Inherits Group
‘사용 방법
Dim instance As Match
[SerializableAttribute] 
public class Match : Group
[SerializableAttribute] 
public ref class Match : public Group
/** @attribute SerializableAttribute() */ 
public class Match extends Group
SerializableAttribute 
public class Match extends Group

설명

단일 일치 항목에는 여러 캡처링 그룹이 포함될 수 있으므로 MatchGroupCollection을 반환하는 Groups 속성을 가집니다. GroupCollection에는 각 그룹을 반환하는 접근자가 있습니다. Match는 일치된 전체 부분 문자열에 직접 액세스할 수 있도록 Group에서 상속 받습니다. 즉, Match 인스턴스 자체는 Match.Groups[0](Visual Basic의 경우 Match.Groups(0))와 같습니다. Match 개체는 변경할 수 없으며 public 생성자를 가지고 있지 않습니다.

상속 계층 구조

System.Object
   System.Text.RegularExpressions.Capture
     System.Text.RegularExpressions.Group
      System.Text.RegularExpressions.Match

스레드로부터의 안전성

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

Match 멤버
System.Text.RegularExpressions 네임스페이스