Validation.Unvalidated Method

Definition

Overloads

Unvalidated(HttpRequest)

Returns a version of form values, cookies, and query-string variables without checking them first for HTML markup and client script.

Unvalidated(HttpRequestBase)

Returns all values from the Request object (including form fields, cookies, and the query string) without checking them first for HTML markup and client script.

Unvalidated(HttpRequest, String)

Returns a value from the specified form field, cookie, or query-string variable without checking it first for HTML markup and client script.

Unvalidated(HttpRequestBase, String)

Returns the specified value from the Request object without checking it first for HTML markup and client script.

Unvalidated(HttpRequest)

Returns a version of form values, cookies, and query-string variables without checking them first for HTML markup and client script.

public static System.Web.Helpers.UnvalidatedRequestValues Unvalidated (this System.Web.HttpRequest request);
static member Unvalidated : System.Web.HttpRequest -> System.Web.Helpers.UnvalidatedRequestValues
<Extension()>
Public Function Unvalidated (request As HttpRequest) As UnvalidatedRequestValues

Parameters

request
HttpRequest

The HttpRequest object that contains values to exclude from request validation.

Returns

UnvalidatedRequestValues

An object that contains unvalidated versions of the form and query-string values.

Applies to

Unvalidated(HttpRequestBase)

Returns all values from the Request object (including form fields, cookies, and the query string) without checking them first for HTML markup and client script.

public static System.Web.Helpers.UnvalidatedRequestValues Unvalidated (this System.Web.HttpRequestBase request);
static member Unvalidated : System.Web.HttpRequestBase -> System.Web.Helpers.UnvalidatedRequestValues
<Extension()>
Public Function Unvalidated (request As HttpRequestBase) As UnvalidatedRequestValues

Parameters

request
HttpRequestBase

The HttpRequest object that contains values to exclude from validation.

Returns

UnvalidatedRequestValues

An object that contains unvalidated versions of the form, cookie, and query-string values.

Applies to

Unvalidated(HttpRequest, String)

Returns a value from the specified form field, cookie, or query-string variable without checking it first for HTML markup and client script.

public static string Unvalidated (this System.Web.HttpRequest request, string key);
static member Unvalidated : System.Web.HttpRequest * string -> string
<Extension()>
Public Function Unvalidated (request As HttpRequest, key As String) As String

Parameters

request
HttpRequest

The HttpRequest object that contains values to exclude from validation.

key
String

The name of the field to exclude from validation. key can refer to a form field, to a cookie, or to the query-string variable.

Returns

String

A string that contains unvalidated text from the specified field, cookie, or query-string value.

Applies to

Unvalidated(HttpRequestBase, String)

Returns the specified value from the Request object without checking it first for HTML markup and client script.

public static string Unvalidated (this System.Web.HttpRequestBase request, string key);
static member Unvalidated : System.Web.HttpRequestBase * string -> string
<Extension()>
Public Function Unvalidated (request As HttpRequestBase, key As String) As String

Parameters

request
HttpRequestBase

The HttpRequestBase object that contains values to exclude from validation.

key
String

The name of the field to exclude from validation. key can refer to a form field, to a cookie, or to the query-string variable.

Returns

String

A string that contains unvalidated text from the specified field, cookie, or query-string value.

Applies to