CodeFieldReferenceExpression 建構函式

定義

初始化 CodeFieldReferenceExpression 類別的新執行個體。Initializes a new instance of the CodeFieldReferenceExpression class.

多載

CodeFieldReferenceExpression()

初始化 CodeFieldReferenceExpression 類別的新執行個體。Initializes a new instance of the CodeFieldReferenceExpression class.

CodeFieldReferenceExpression(CodeExpression, String)

使用指定的目標物件和欄位名稱來初始化 CodeFieldReferenceExpression 類別的新執行個體。Initializes a new instance of the CodeFieldReferenceExpression class using the specified target object and field name.

CodeFieldReferenceExpression()

初始化 CodeFieldReferenceExpression 類別的新執行個體。Initializes a new instance of the CodeFieldReferenceExpression class.

public:
 CodeFieldReferenceExpression();
public CodeFieldReferenceExpression ();
Public Sub New ()

CodeFieldReferenceExpression(CodeExpression, String)

使用指定的目標物件和欄位名稱來初始化 CodeFieldReferenceExpression 類別的新執行個體。Initializes a new instance of the CodeFieldReferenceExpression class using the specified target object and field name.

public:
 CodeFieldReferenceExpression(System::CodeDom::CodeExpression ^ targetObject, System::String ^ fieldName);
public CodeFieldReferenceExpression (System.CodeDom.CodeExpression targetObject, string fieldName);
new System.CodeDom.CodeFieldReferenceExpression : System.CodeDom.CodeExpression * string -> System.CodeDom.CodeFieldReferenceExpression
Public Sub New (targetObject As CodeExpression, fieldName As String)

參數

targetObject
CodeExpression

CodeExpression,表示包含欄位的物件。A CodeExpression that indicates the object that contains the field.

fieldName
String

欄位的名稱。The name of the field.

另請參閱

適用於