Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RouteValueExpressionEditorSheet Class

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

System.Object
  System.Web.UI.Design.ExpressionEditorSheet
    System.Web.UI.Design.RouteValueExpressionEditorSheet

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)
public class RouteValueExpressionEditorSheet : ExpressionEditorSheet

The RouteValueExpressionEditorSheet type exposes the following members.

  NameDescription
Public methodRouteValueExpressionEditorSheetInitializes a new instance of the RouteValueExpressionEditorSheet class.
Top
  NameDescription
Public propertyIsValidGets a value that indicates whether the RouteValue expression string is valid. (Overrides ExpressionEditorSheet.IsValid.)
Public propertyRouteValueGets or sets the name of the URL parameter to be evaluated by the RouteValue expression.
Public propertyServiceProviderGets the service provider implementation that is used by the expression editor sheet. (Inherited from ExpressionEditorSheet.)
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetExpressionReturns a RouteValue expression that is formed by the expression editor sheet property values. (Overrides ExpressionEditorSheet.GetExpression().)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

The RouteValueExpressionEditor.GetExpressionEditorSheet method returns a RouteValueExpressionEditorSheet object. 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. The visual designer uses the returned RouteValueExpressionEditorSheet object to prompt for the RouteValue property. Once the property is selected, the visual designer calls the GetExpression method to create a RouteValue expression string.

The RouteValue() property must be specified in order to create a RouteValue expression string.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.