MimeTextMatch::Pattern Property

 

Gets or sets the text pattern for the search.

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

public:
property String^ Pattern {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

A string representing the text for which to search the HTTP transmission. The default value is an empty string ("").

The value of this property can contain wildcard characters.

// 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;

.NET Framework
Available since 1.1
Return to top
Show: