This documentation is archived and is not being maintained.

MatchAttribute::IgnoreCase Property

Gets or sets a value that indicates whether the pattern to match is case insensitive.

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

public:
property bool IgnoreCase {
	bool get ();
	void set (bool value);
}

Property Value

Type: System::Boolean
true if matching is case insensitive; otherwise, false. The default value is false.

public ref class Example_Headers
{
public:

   [MatchAttribute("TITLE>(.*?)<")]
   String^ Title;

   [MatchAttribute("",Pattern="h1>(.*?)<",IgnoreCase=true)]
   String^ H1;

   [MatchAttribute("H2>((([^<,]*),?)+)<",Group=3,Capture=4)]
   String^ Element;

   [MatchAttribute("H2>((([^<,]*),?){2,})<",Group=3,MaxRepeats=0)]
   array<String^>^ Elements1;

   [MatchAttribute("H2>((([^<,]*),?){2,})<",Group=3,MaxRepeats=1)]
   array<String^>^ Elements2;

   [MatchAttribute("H3 ([^=]*)=([^>]*)",Group=1)]
   String^ Attribute;

   [MatchAttribute("H3 ([^=]*)=([^>]*)",Group=2)]
   String^ Value;
};
public __gc class Example_Headers {
public:
   [MatchAttribute(S"TITLE>(.?)<")]
   String* Title;

   [MatchAttribute(S"", Pattern=S"h1>(.?)<", IgnoreCase=true)]
   String* H1;

   [MatchAttribute(S"H2>(((->Item[^<, ]*), ?)+)<", Group=3, Capture=4)]
   String* Element;

   [MatchAttribute(S"H2>(((->Item[^<, ]*), ?) {2, })<", Group=3, MaxRepeats=0)]
   String* Elements1[];

   [MatchAttribute(S"H2>(((->Item[^<, ]*), ?) {2, })<", Group=3, MaxRepeats=1)]
   String* Elements2[];

   [MatchAttribute(S"H3 (->Item[^=]*)=(->Item[^>]*)", Group=1)]
   String* Attribute;

   [MatchAttribute(S"H3 (->Item[^=]*)=(->Item[^>]*)", Group=2)]
   String* Value;
};

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Show: