RouteValueExpressionEditorSheet 类

定义

表示设计时期间一个设计器宿主 UI 中一个 RouteValue 表达式的属性的设计时编辑器表。Represents a design-time editor sheet for the properties of a RouteValue expression in the UI of a designer host at design time.

public ref class RouteValueExpressionEditorSheet : System::Web::UI::Design::ExpressionEditorSheet
public class RouteValueExpressionEditorSheet : System.Web.UI.Design.ExpressionEditorSheet
type RouteValueExpressionEditorSheet = class
    inherit ExpressionEditorSheet
Public Class RouteValueExpressionEditorSheet
Inherits ExpressionEditorSheet
继承
RouteValueExpressionEditorSheet

注解

可视化设计器将 RouteValueExpressionEditor 类与 RouteValueExpressionEditorSheet 类结合使用,以选择 RouteValue 表达式的各个属性,并将所选表达式属性值合并为 RouteValue 表达式。The visual designer uses the RouteValueExpressionEditor class together with the RouteValueExpressionEditorSheet class to select the individual properties of a RouteValue expression, and to combine the selected expression property values into a RouteValue expression.

RouteValueExpressionEditor.GetExpressionEditorSheet 方法将返回 RouteValueExpressionEditorSheet 对象。The RouteValueExpressionEditor.GetExpressionEditorSheet method returns a RouteValueExpressionEditorSheet object. 在 "表达式" 对话框中,选择控件属性并将其绑定到 RouteValue 表达式时,可视化设计器将调用 GetExpressionEditorSheet 方法。In the expressions dialog box, when you select a control property and bind it to a RouteValue expression, the visual designer calls the GetExpressionEditorSheet method. 可视化设计器使用返回的 RouteValueExpressionEditorSheet 对象提示提供 RouteValue 属性。The visual designer uses the returned RouteValueExpressionEditorSheet object to prompt for the RouteValue property. 选择属性后,可视化设计器会调用 GetExpression 方法来创建 RouteValue 的表达式字符串。Once the property is selected, the visual designer calls the GetExpression method to create a RouteValue expression string.

若要创建 RouteValue 表达式字符串,必须指定 RouteValue 属性。The RouteValue property must be specified in order to create a RouteValue expression string.

构造函数

RouteValueExpressionEditorSheet(String, IServiceProvider)

初始化 RouteValueExpressionEditorSheet 类的新实例。Initializes a new instance of the RouteValueExpressionEditorSheet class.

属性

IsValid

获取一个值,该值指示 RouteValue 表达式字符串是否有效。Gets a value that indicates whether the RouteValue expression string is valid.

RouteValue

获取或设置要由 RouteValue 表达式计算的 URL 参数的名称。Gets or sets the name of the URL parameter to be evaluated by the RouteValue expression.

ServiceProvider

获取表达式编辑器表使用的服务提供程序实现。Gets the service provider implementation that is used by the expression editor sheet.

(继承自 ExpressionEditorSheet)

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetExpression()

返回由表达式编辑器表属性值组成的 RouteValue 表达式。Returns a RouteValue expression that is formed by the expression editor sheet property values.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅