共用方式為


CodeDomSerializer.GetTargetComponentName 方法

定義

決定指定的陳述式應隸屬於哪一個陳述式群組。

public:
 virtual System::String ^ GetTargetComponentName(System::CodeDom::CodeStatement ^ statement, System::CodeDom::CodeExpression ^ expression, Type ^ targetType);
public virtual string GetTargetComponentName (System.CodeDom.CodeStatement statement, System.CodeDom.CodeExpression expression, Type targetType);
public virtual string? GetTargetComponentName (System.CodeDom.CodeStatement? statement, System.CodeDom.CodeExpression? expression, Type? targetType);
abstract member GetTargetComponentName : System.CodeDom.CodeStatement * System.CodeDom.CodeExpression * Type -> string
override this.GetTargetComponentName : System.CodeDom.CodeStatement * System.CodeDom.CodeExpression * Type -> string
Public Overridable Function GetTargetComponentName (statement As CodeStatement, expression As CodeExpression, targetType As Type) As String

參數

statement
CodeStatement

要決定其所屬群組的 CodeStatement

expression
CodeExpression

statement 精簡之後所得的 CodeExpression

targetType
Type

Typestatement

傳回

statement 應與之組成群組的元件的名稱。

適用於