System.Web.Mvc.RouteInfo.InternalRequestContext.InternalRequestContext C# (CSharp) Method

InternalRequestContext() public method

Creates a new instance of InternalRequestContext
public InternalRequestContext ( Uri uri, string applicationPath ) : System
uri System.Uri
applicationPath string
return System
            public InternalRequestContext(Uri uri, string applicationPath)
                : base()
            {
                _pathInfo = uri.Query;

                if (String.IsNullOrEmpty(applicationPath) || !uri.AbsolutePath.StartsWith(applicationPath,
                    StringComparison.OrdinalIgnoreCase))
                    _appRelativePath = uri.AbsolutePath.Substring(applicationPath.Length);
                else
                    _appRelativePath = uri.AbsolutePath;
            }
RouteInfo.InternalRequestContext