편집

다음을 통해 공유


ExpressionEditor.ExpressionPrefix Property

Definition

Gets the expression prefix that identifies expression strings that are supported by the expression editor implementation.

public:
 property System::String ^ ExpressionPrefix { System::String ^ get(); };
public string ExpressionPrefix { get; }
member this.ExpressionPrefix : string
Public ReadOnly Property ExpressionPrefix As String

Property Value

A string representing the prefix for expressions supported by the class derived from the ExpressionEditor; otherwise, an empty string (""), if the expression editor does not have an associated expression prefix.

Remarks

The expression prefix identifies the custom expression type and associates an expression with the expression builder and expression editor. When custom expressions are parsed in a page, the expression prefix is used to create instances of the associated ExpressionBuilder and ExpressionEditor classes. To associate an expression prefix with an expression builder and expression editor, apply the ExpressionEditorAttribute and ExpressionPrefixAttribute attributes to the custom ExpressionBuilder class and configure the expression prefix for an expression builder in the expressionBuilders element in the Web configuration file.

Typically, derived classes do not override the ExpressionPrefix property. The base ExpressionEditor class sets the ExpressionPrefix value based on the ExpressionPrefixAttribute attribute for the associated ExpressionBuilder object.

Applies to

See also