This documentation is archived and is not being maintained.
MimeTextBinding::Matches Property
Visual Studio 2010
Gets the collection of MIME text patterns for which the HTTP transmission is searched.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System.Web.Services.Description::MimeTextMatchCollectionA MimeTextMatchCollection representing the MIME text patterns to search for.
For more information about specifying protocols for XML Web services, see [<topic://cpconbuildingaspnetwebservices>]. For more information about Web Services Description Language (WSDL), see the specification at http://www.w3.org/TR/wsdl/.
The following example demonstrates the use of the Matches property.
// <Snippet3> // Create an OutputBinding. OutputBinding^ myOutputBinding = gcnew OutputBinding; // Create a MimeTextBinding. MimeTextBinding^ myMimeTextBinding = gcnew MimeTextBinding; // Create a MimeTextMatch. MimeTextMatch^ myMimeTextMatch = gcnew 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; // </Snippet5>
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: