SegmentElement Class

Specifies a URL segment whose content will not be served to the client.

Syntax

class SegmentElement : CollectionElement  

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the SegmentElement class.

Name Description
Segment A required unique read/write string value that specifies a URL segment whose content will not be served to the client. Wildcard or regular expressions are not supported. The key property. Note: A segment is the part of a URL between two slashes or the part of the URL following the last slash. For example, the URL /segment1/segment2/segment3.asp has three segments: segment1, segment2, and segment3.asp. Note: The following segments are blocked by default: bin, App_code, App_GlobalResources, App_LocalResources, App_WebReferences, App_Data, and App_Browsers.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the HiddenSegments property of the HiddenSegmentSettings class.

Inheritance Hierarchy

CollectionElement

SegmentElement

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

CollectionElement Class
HiddenSegmentSettings Class
RequestFilteringSection Class