Share via


FriendlyUrlSettings.AutoRedirectMode Property

.NET Framework 4

The type of redirect to perform on non-friendly URLs to friendly URLs. Defaults to Off.

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

Syntax

'Declaration
Public Property AutoRedirectMode As RedirectMode 
    Get 
    Set
'Usage
Dim instance As FriendlyUrlSettings 
Dim value As RedirectMode 

value = instance.AutoRedirectMode

instance.AutoRedirectMode = value
public RedirectMode AutoRedirectMode { get; set; }
public:
property RedirectMode AutoRedirectMode {
    RedirectMode get ();
    void set (RedirectMode value);
}
member AutoRedirectMode : RedirectMode with get, set
function get AutoRedirectMode () : RedirectMode 
function set AutoRedirectMode (value : RedirectMode)

Property Value

Type: Microsoft.AspNet.FriendlyUrls.RedirectMode
Returns RedirectMode.

See Also

Reference

FriendlyUrlSettings Class

Microsoft.AspNet.FriendlyUrls Namespace