CodeDomSerializer.GetTargetComponentName Method (CodeStatement, CodeExpression, Type)

 

Determines which statement group the given statement should belong to.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

public virtual string GetTargetComponentName(
	CodeStatement statement,
	CodeExpression expression,
	Type targetType
)

Parameters

statement
Type: System.CodeDom.CodeStatement

The CodeStatement for which to determine the group.

expression
Type: System.CodeDom.CodeExpression

A CodeExpression that statement has been reduced to.

targetType
Type: System.Type

The Type of statement.

Return Value

Type: System.String

The name of the component with which statement should be grouped.

.NET Framework
Available since 2.0
Return to top
Show: