This documentation is archived and is not being maintained.
MimeTextMatch.Pattern Property
.NET Framework 1.1
Gets or sets the text pattern for the search.
[Visual Basic] Public Property Pattern As String [C#] public string Pattern {get; set;} [C++] public: __property String* get_Pattern(); public: __property void set_Pattern(String*); [JScript] public function get Pattern() : String; public function set Pattern(String);
Property Value
A string representing the text for which to search the HTTP transmission. The default value is an empty string ("").
Remarks
The value of this property can contain wildcard characters.
Example
[Visual Basic] ' Create an OutputBinding. Dim myOutputBinding As New OutputBinding() ' Create a MimeTextBinding. Dim myMimeTextBinding As New MimeTextBinding() ' Create a MimeTextMatch. Dim myMimeTextMatch As New MimeTextMatch() Dim myMimeTextMatchCollection As MimeTextMatchCollection ' Initialize properties of the MimeTextMatch. myMimeTextMatch.Name = "Title" myMimeTextMatch.Type = "*/*" myMimeTextMatch.Pattern = "'TITLE>(.*?)<" myMimeTextMatch.IgnoreCase = True ' Initialize a MimeTextMatchCollection. myMimeTextMatchCollection = myMimeTextBinding.Matches ' Add the MimeTextMatch to the MimeTextMatchCollection. myMimeTextMatchCollection.Add(myMimeTextMatch) myOutputBinding.Extensions.Add(myMimeTextBinding) ' Add the OutputBinding to the OperationBinding. myOperationBinding.Output = myOutputBinding [C#] // Create an OutputBinding. OutputBinding myOutputBinding = new OutputBinding(); // Create a MimeTextBinding. MimeTextBinding myMimeTextBinding = new MimeTextBinding(); // Create a MimeTextMatch. MimeTextMatch myMimeTextMatch = new MimeTextMatch(); MimeTextMatchCollection myMimeTextMatchCollection ; // Initialize properties of the MimeTextMatch. myMimeTextMatch.Name = "Title"; myMimeTextMatch.Type = "*/*"; myMimeTextMatch.Pattern = "'TITLE>(.*?)<"; myMimeTextMatch.IgnoreCase = true; // Initialize a MimeTextMatchCollection. myMimeTextMatchCollection = myMimeTextBinding.Matches; // Add the MimeTextMatch to the MimeTextMatchCollection. myMimeTextMatchCollection.Add( myMimeTextMatch ); myOutputBinding.Extensions.Add( myMimeTextBinding ); // Add the OutputBinding to the OperationBinding. myOperationBinding.Output = myOutputBinding; [C++] // Create an OutputBinding. OutputBinding* myOutputBinding = new OutputBinding(); // Create a MimeTextBinding. MimeTextBinding* myMimeTextBinding = new MimeTextBinding(); // Create a MimeTextMatch. MimeTextMatch* myMimeTextMatch = new MimeTextMatch(); MimeTextMatchCollection* myMimeTextMatchCollection ; // Initialize properties of the MimeTextMatch. myMimeTextMatch->Name = S"Title"; myMimeTextMatch->Type = S"*/*"; myMimeTextMatch->Pattern = S"'TITLE>(.*?)<"; myMimeTextMatch->IgnoreCase = true; // Initialize a MimeTextMatchCollection. myMimeTextMatchCollection = myMimeTextBinding->Matches; // Add the MimeTextMatch to the MimeTextMatchCollection. myMimeTextMatchCollection->Add( myMimeTextMatch ); myOutputBinding->Extensions->Add( myMimeTextBinding ); // Add the OutputBinding to the OperationBinding. myOperationBinding->Output = myOutputBinding;
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
MimeTextMatch Class | MimeTextMatch Members | System.Web.Services.Description Namespace
Show: