MimeTextBinding.Matches Property
Gets the collection of MIME text patterns for which the HTTP transmission is searched.
[Visual Basic] Public ReadOnly Property Matches As MimeTextMatchCollection [C#] public MimeTextMatchCollection Matches {get;} [C++] public: __property MimeTextMatchCollection* get_Matches(); [JScript] public function get Matches() : MimeTextMatchCollection;
Property Value
A MimeTextMatchCollection representing the MIME text patterns to search for.
Remarks
For more information about specifying protocols for XML Web services, see Building XML Web Services Using ASP.NET. For more information about Web Services Description Language (WSDL), see the specification at http://www.w3.org/TR/wsdl/.
Example
[Visual Basic, C#, C++] The following example demonstrates the use of the Matches property.
[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
MimeTextBinding Class | MimeTextBinding Members | System.Web.Services.Description Namespace