Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft einen Wert ab, der angibt, wie oft die Suche ausgeführt werden soll, oder legt diesen fest.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Property Repeats As Integer
'Usage
Dim instance As MimeTextMatch
Dim value As Integer
value = instance.Repeats
instance.Repeats = value
public int Repeats { get; set; }
public:
property int Repeats {
int get ();
void set (int value);
}
/** @property */
public int get_Repeats ()
/** @property */
public void set_Repeats (int value)
public function get Repeats () : int
public function set Repeats (value : int)
Eigenschaftenwert
Eine 32-Bit-Ganzzahl mit Vorzeichen. Der Standardwert ist 1.
Ausnahmen
| Ausnahmetyp | Bedingung |
|---|---|
Der Eigenschaftenwert ist negativ. |
Hinweise
Wenn mehrere Entsprechungen möglich sind, wird bei einem Eigenschaftenwert von 1 nur die erste gefundene Entsprechung zurückgegeben. Bei einem Wert von MaxValue werden alle Entsprechungen zurückgegeben.
Diese Eigenschaft gibt dieselben Informationen wie die RepeatsString-Eigenschaft zurück, jedoch nicht als Zeichenfolge, sondern als 32-Bit-Ganzzahl mit Vorzeichen.
Beispiel
' Create an InputBinding.
Dim myInputBinding As New InputBinding()
Dim myMimeTextBinding As New MimeTextBinding()
Dim myMimeTextMatchCollection1 As New MimeTextMatchCollection()
Dim myMimeTextMatch(2) As MimeTextMatch
myMimeTextMatchCollection1 = myMimeTextBinding.Matches
' Intialize the MimeTextMatch.
For myInt = 0 To 2
' Get a new MimeTextMatch.
myMimeTextMatch(myInt) = New MimeTextMatch()
' Assign values to properties of the MimeTextMatch.
myMimeTextMatch(myInt).Name = "Title" + 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 Then
' 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"
End If
' Add 'MimeTextMatch' instance to collection.
myMimeTextMatchCollection1.Add(myMimeTextMatch(myInt))
Next myInt
// Create an InputBinding.
InputBinding myInputBinding = new InputBinding();
MimeTextBinding myMimeTextBinding = new MimeTextBinding();
MimeTextMatchCollection myMimeTextMatchCollection1 =
new MimeTextMatchCollection();
MimeTextMatch[] myMimeTextMatch = new MimeTextMatch[3];
myMimeTextMatchCollection1 = myMimeTextBinding.Matches;
// Intialize the MimeTextMatch.
for( myInt = 0 ; myInt < 3 ; myInt++ )
{
// Get a new MimeTextMatch.
myMimeTextMatch[ myInt ] = new MimeTextMatch();
// Assign values to properties of the MimeTextMatch.
myMimeTextMatch[ myInt ].Name = "Title" + 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";
}
// Add the MimeTextMatch to the collection.
myMimeTextMatchCollection1.Add( myMimeTextMatch[ myInt ] );
}
// 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 ] );
}
// Create an InputBinding.
InputBinding myInputBinding = new InputBinding();
MimeTextBinding myMimeTextBinding = new MimeTextBinding();
MimeTextMatchCollection myMimeTextMatchCollection1 =
new MimeTextMatchCollection();
MimeTextMatch myMimeTextMatch[] = new MimeTextMatch[3];
myMimeTextMatchCollection1 = myMimeTextBinding.get_Matches();
// Intialize the MimeTextMatch.
for (myInt = 0; myInt < 3; myInt++) {
// Get a new MimeTextMatch.
myMimeTextMatch.set_Item(myInt, new MimeTextMatch());
// Assign values to properties of the MimeTextMatch.
((MimeTextMatch)myMimeTextMatch.get_Item(myInt)).
set_Name("Title" + Convert.ToString(myInt));
((MimeTextMatch)myMimeTextMatch.get_Item(myInt)).
set_Type("*/*");
((MimeTextMatch)myMimeTextMatch.get_Item(myInt)).
set_Pattern("TITLE>(.*?)<");
((MimeTextMatch)myMimeTextMatch.get_Item(myInt)).
set_IgnoreCase(true);
((MimeTextMatch)myMimeTextMatch.get_Item(myInt)).set_Capture(2);
((MimeTextMatch)myMimeTextMatch.get_Item(myInt)).set_Group(2);
if (myInt != 0) {
// Assign the Repeats property if the index is not 0.
((MimeTextMatch)myMimeTextMatch.get_Item(myInt)).
set_Repeats(2);
}
else {
// Assign the RepeatsString property if the index is 0.
((MimeTextMatch)myMimeTextMatch.get_Item(myInt)).
set_RepeatsString("4");
}
// Add the MimeTextMatch to the collection.
myMimeTextMatchCollection1.Add(myMimeTextMatch.get_Item(myInt));
}
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
MimeTextMatch-Klasse
MimeTextMatch-Member
System.Web.Services.Description-Namespace