Name
<case>
Synopsis
<case match=string>
property1=value
property2=value
propertyN=value
</case>Specifies one of a group of exclusive matching cases for which
property assignments will be executed. Only the first matching
<case> element within a given
<filter> element will be executed. The rest
will be ignored.
Scope
Any
Attributes
-
match The pattern to match. Uses the .NET Framework regular expression syntax. This attribute is optional. If omitted, all requests will be assumed to match, and any property/value assignments contained within the
<filter>element will be executed.-
with The regular expression or string to search for. This attribute is optional. If omitted, the server variable specified in the
<use>element will be searched.
Child Elements
None
Notes
This element is useful in situations when you only want a single
match. For example, the default
<browserCaps> configuration in machine.config uses the
<case> element to assign the platform,
win16, and win32 attributes.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access