Freigeben über


MimeTextMatch.Pattern-Eigenschaft

Ruft das Textmuster für die Suche ab oder legt dieses fest.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public Property Pattern As String
'Usage
Dim instance As MimeTextMatch
Dim value As String

value = instance.Pattern

instance.Pattern = value
public string Pattern { get; set; }
public:
property String^ Pattern {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Pattern ()

/** @property */
public void set_Pattern (String value)
public function get Pattern () : String

public function set Pattern (value : String)

Eigenschaftenwert

Eine Zeichenfolge, die den Text darstellt, nach dem die HTTP-Übertragung durchsucht werden soll. Der Standardwert ist eine leere Zeichenfolge ("").

Hinweise

Der Wert dieser Eigenschaft kann Platzhalterzeichen enthalten.

Beispiel

' 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
// 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; 
// 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;
// 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.set_Name("Title");
myMimeTextMatch.set_Type("*/*");
myMimeTextMatch.set_Pattern("'TITLE>(.*?)<");
myMimeTextMatch.set_IgnoreCase(true);

// Initialize a MimeTextMatchCollection.
myMimeTextMatchCollection = myMimeTextBinding.get_Matches();

// Add the MimeTextMatch to the MimeTextMatchCollection.
myMimeTextMatchCollection.Add(myMimeTextMatch);
myOutputBinding.get_Extensions().Add(myMimeTextBinding);

// Add the OutputBinding to the OperationBinding.
myOperationBinding.set_Output(myOutputBinding);

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