Прочитај на енглеском Уреди

Делите путем


SessionParameter.Evaluate(HttpContext, Control) Method

Definition

Updates and returns the value of the SessionParameter object.

C#
protected override object Evaluate(System.Web.HttpContext context, System.Web.UI.Control control);
C#
protected internal override object Evaluate(System.Web.HttpContext context, System.Web.UI.Control control);

Parameters

context
HttpContext

The current HttpContext of the request.

control
Control

A Control that is associated with the Web Forms page where the SessionParameter is used.

Returns

An object that represents the updated and current value of the parameter. If the context or the request is null, the Evaluate(HttpContext, Control) method returns null.

Remarks

The SessionParameter object attempts to bind to the value of the session variable every time the Evaluate method is called.

The context parameter is used by the Evaluate method to retrieve the name/value pair that the SessionParameter object binds to. The control parameter is ignored.

Applies to

Производ Верзије
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also