Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IRequestAccessor

    Provides access to HTTP request values.

    Namespace: Umbraco.Cms.Core.Web
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IRequestAccessor

    Methods

    View Source

    GetQueryStringValue(string)

    Gets the query string value for the specified name.

    Declaration
    string? GetQueryStringValue(string name)
    Parameters
    Type Name Description
    string name

    The name of the query string parameter.

    Returns
    Type Description
    string

    The query string value if found; otherwise, null.

    View Source

    GetRequestUrl()

    Gets the current request URL.

    Declaration
    Uri? GetRequestUrl()
    Returns
    Type Description
    Uri

    The current request System.Uri if available; otherwise, null.

    View Source

    GetRequestValue(string)

    Gets the request value for the specified name from request, form, or query string.

    Declaration
    string? GetRequestValue(string name)
    Parameters
    Type Name Description
    string name

    The name of the value to retrieve.

    Returns
    Type Description
    string

    The request value if found; otherwise, null.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX