แก้ไข

แชร์ผ่าน


RouteUrlExpressionEditorSheet Class

Definition

Represents a design-time editor sheet for the properties of a RouteUrl expression in the UI of a designer host at design time.

public ref class RouteUrlExpressionEditorSheet : System::Web::UI::Design::ExpressionEditorSheet
public class RouteUrlExpressionEditorSheet : System.Web.UI.Design.ExpressionEditorSheet
type RouteUrlExpressionEditorSheet = class
    inherit ExpressionEditorSheet
Public Class RouteUrlExpressionEditorSheet
Inherits ExpressionEditorSheet
Inheritance
RouteUrlExpressionEditorSheet

Remarks

The visual designer uses the RouteUrlExpressionEditor class together with the RouteUrlExpressionEditorSheet class to select the individual properties of a RouteUrl expression, and to combine the selected expression property values into a RouteUrl expression.

The RouteUrlExpressionEditor.GetExpressionEditorSheet method returns a RouteUrlExpressionEditorSheet object. In the expressions dialog box, when you select a control property and bind it to a RouteUrl expression, the visual designer calls the GetExpressionEditorSheet method. The visual designer uses the returned RouteUrlExpressionEditorSheet object to prompt for the RouteValues and RouteName properties. Once the properties are selected, the visual designer calls the GetExpression method to combine the properties into a RouteUrl expression string.

The RouteValues property must be specified if the RouteName property is not specified. The RouteName property must be specified if the RouteValues is not specified. Both properties may be specified.

Constructors

RouteUrlExpressionEditorSheet(String, IServiceProvider)

Initializes a new instance of the RouteUrlExpressionEditorSheet class.

Properties

IsValid

Gets a value that indicates whether the RouteUrl expression string is valid.

RouteName

Gets or sets the name of the route that a URL is to be generated for.

RouteValues

Gets or sets the URL parameter names and values that are to be used to generate a URL from a route.

ServiceProvider

Gets the service provider implementation that is used by the expression editor sheet.

(Inherited from ExpressionEditorSheet)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetExpression()

Returns a RouteUrl expression that is formed by the expression editor sheet property values.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also