Class UrlSegmentEventArgs
Used in events CreatingUrlSegment and CreatedUrlSegment. Usage is to let eventhandlers control the creation of UrlSegment for a page.
Inheritance
System.Object
System.EventArgs
UrlSegmentEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class UrlSegmentEventArgs : EventArgs
Constructors
UrlSegmentEventArgs()
Declaration
public UrlSegmentEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the creation of url segment should be cancelled.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
This property only has meaning in event CreatingUrlSegment
Content
Gets or sets the content whos url/routing segment is to be set.
Declaration
public IContent Content { get; set; }
Property Value
Type | Description |
---|---|
IContent | The content. |
IsModified
Gets or sets a value indicating whether this instance is modified.
Declaration
public bool IsModified { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PageData
Gets or sets the page data whos url segment is to be set.
Declaration
[Obsolete("Use property Content instead")]
public PageData PageData { get; set; }
Property Value
Type | Description |
---|---|
PageData | The page data. |
RoutingSegment
Gets the routing segment implmentation from Content if implemented.
Declaration
public IRoutable RoutingSegment { get; }
Property Value
Type | Description |
---|---|
IRoutable | The routing segment. |