Class UrlSegmentEventArgs
Used in events Creating and Created. 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: 11.20.7Syntax
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 Creating
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 |
|
RoutingSegment
Gets the routing segment implmentation from Content if implemented.
Declaration
public IRoutable RoutingSegment { get; }
Property Value
Type | Description |
---|---|
IRoutable | The routing segment. |