Bagikan melalui


CodeDomSerializer.GetTargetComponentName Metode

Definisi

Menentukan grup pernyataan mana yang harus dimiliki oleh pernyataan yang diberikan.

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

Parameter

statement
CodeStatement

CodeStatement yang untuk menentukan grup.

expression
CodeExpression

Yang CodeExpressionstatement telah dikurangi menjadi.

targetType
Type

Type dari statement.

Mengembalikan

Nama komponen yang statement harus dikelompokkan.

Berlaku untuk