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 分为一组的组件的名称。

适用于