FriendlyUrlSettings Class

.NET Framework 4

Represents the settings used when enabling Friendly URLs.

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.FriendlyUrls.FriendlyUrlSettings

Namespace:  Microsoft.AspNet.FriendlyUrls
Assembly:  Microsoft.AspNet.FriendlyUrls (in Microsoft.AspNet.FriendlyUrls.dll)

Syntax

'Declaration
Public NotInheritable Class FriendlyUrlSettings
'Usage
Dim instance As FriendlyUrlSettings
public sealed class FriendlyUrlSettings
public ref class FriendlyUrlSettings sealed
[<SealedAttribute>]
type FriendlyUrlSettings =  class end
public final class FriendlyUrlSettings

The FriendlyUrlSettings type exposes the following members.

Constructors

  Name Description
Public method FriendlyUrlSettings Creates a new instance of the FriendlyUrlSettings class with the default values.

Top

Properties

  Name Description
Public property AutoRedirectMode The type of redirect to perform on non-friendly URLs to friendly URLs. Defaults to Off.
Public property ResolverCachingMode The mode of caching to use when resolving friendly Urls. Defaults to ResolverCachingMode.Static.
Public property SwitchViewRouteName The name of the route that handles user requests to switch views. Defaults to "AspNet.FriendlyUrls.SwitchView".
Public property SwitchViewUrl The URL that view switching request are sent to. Defaults to "__FriendlyUrls_SwitchView/{view}".

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AspNet.FriendlyUrls Namespace