This documentation is archived and is not being maintained.
MimeTextMatch::Group Property
Visual Studio 2010
Gets or sets a value indicating the number of groups in which to place the results of the text search.
Assembly: System.Web.Services (in System.Web.Services.dll)
| Exception | Condition |
|---|---|
| ArgumentException | The property value is negative. |
The value of this property must be less than or equal to the value of the Repeats property, or the XML Web service will not compile correctly.
// Create an InputBinding. InputBinding^ myInputBinding = gcnew InputBinding; MimeTextBinding^ myMimeTextBinding = gcnew MimeTextBinding; MimeTextMatchCollection^ myMimeTextMatchCollection1 = gcnew MimeTextMatchCollection; array<MimeTextMatch^>^myMimeTextMatch = gcnew array<MimeTextMatch^>(3); myMimeTextMatchCollection1 = myMimeTextBinding->Matches; // Intialize the MimeTextMatch. for ( myInt = 0; myInt < 3; myInt++ ) { // Get a new MimeTextMatch. myMimeTextMatch[ myInt ] = gcnew MimeTextMatch; // Assign values to properties of the MimeTextMatch. myMimeTextMatch[ myInt ]->Name = String::Format( "Title{0}", Convert::ToString( myInt ) ); myMimeTextMatch[ myInt ]->Type = "*/*"; myMimeTextMatch[ myInt ]->Pattern = "TITLE>(.*?)<"; myMimeTextMatch[ myInt ]->IgnoreCase = true; myMimeTextMatch[ myInt ]->Capture = 2; myMimeTextMatch[ myInt ]->Group = 2; if ( myInt != 0 ) { // Assign the Repeats property if the index is not 0. myMimeTextMatch[ myInt ]->Repeats = 2; } else { // Assign the RepeatsString property if the index is 0. myMimeTextMatch[ myInt ]->RepeatsString = "4"; } myMimeTextMatchCollection1->Add( myMimeTextMatch[ myInt ] ); }
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: