
MimeFormatter | 613
Protocols
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
MatchAttribute
System.Web.Services.Protocols (system.web.services.dll)
sealed class
.NET allows you to create screen-scraping web services that search the HTML content
on a web page by using a regular expression. To create a pattern matching web service,
you need to create a WSDL document with <match> elements. These match elements
specify the regular expression to use when parsing the contents of the page and how
many matches should be returned. When the client builds the proxy class for a
pattern-matching web service, it will include a MatchAttribute that describes the
match elements you added to the WSDL document.
The Pattern property specfies the regular expression pattern to use when searching the
web page. IgnoreCase specifies whether the regular expression should be run in case-
sensitive mode (the default). MaxRepeats specifies the maximum number of matches that
will be returned (-1, the default, indicates all). Finally, Group specifies a grouping of
related matches, while Capture specifies the index of a match within a group.
Hierarchy
System.Object ➝ System.Attribute ➝ MatchAttribute
Valid On
All
MimeFormatter
System.Web.Services.Protocols (system.web.services.dll)
abstract class
This class supports the .NET Framework infrastructure. You do ...