ExpressionBuilder(String, String) 构造函数

定义

初始化 ExpressionBuilder 类的新实例。

public:
 ExpressionBuilder(System::String ^ expressionPrefix, System::String ^ theType);
public ExpressionBuilder (string expressionPrefix, string theType);
new System.Web.Configuration.ExpressionBuilder : string * string -> System.Web.Configuration.ExpressionBuilder
Public Sub New (expressionPrefix As String, theType As String)

参数

expressionPrefix
String

字符串,标识要检索的表达式类型。

theType
String

字符串,指定表达式类型。

示例

下面的代码示例演示如何创建对象 ExpressionBuilder 。 此代码示例是为类提供的大型示例的 ExpressionBuilderCollection 一部分。

// Create a new ExpressionBuilder reference.
ExpressionBuilder myExpressionBuilder =
  new ExpressionBuilder("myCustomExpression", "MyCustomExpressionBuilder");
' Create a new ExpressionBuilder reference.
Dim myExpressionBuilder As ExpressionBuilder = _
  New ExpressionBuilder("myCustomExpression", "MyCustomExpressionBuilder")

适用于