MatchAttribute Constructor (String)
.NET Framework (current version)
Initializes a new instance of the MatchAttribute class with the specified pattern.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- pattern
-
Type:
System.String
A string that represents the pattern to match.
Use this constructor to create and initialize a new instance of the MatchAttribute class using the specified pattern.
The following table shows the initial property value for an instance of MatchAttribute.
Property | Initial Value |
|---|---|
Pattern | The value of the pattern parameter. |
Public Class Headers <MatchAttribute("TITLE>(.*?)<")> _ Public Title As String <MatchAttribute("", Pattern:="h1>(.*?)<", IgnoreCase:=True)> _ Public H1 As String <MatchAttribute("H2>((([^<,]*),?)+)<", Group:=3, Capture:=4)> _ Public Element As String <MatchAttribute("H2>((([^<,]*),?){2,})<", Group:=3, MaxRepeats:=0)> _ Public Elements1() As String <MatchAttribute("H2>((([^<,]*),?){2,})<", Group:=3, MaxRepeats:=1)> _ Public Elements2() As String <MatchAttribute("H3 ([^=]*)=([^>]*)", Group:=1)> _ Public Attribute As String <MatchAttribute("H3 ([^=]*)=([^>]*)", Group:=2)> _ Public Value As String End Class 'Headers
.NET Framework
Available since 1.1
Available since 1.1
Show: