System.CodeDom.CodeMethodReferenceExpression Class

Represents a reference to a method.

See Also: CodeMethodReferenceExpression Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CodeMethodReferenceExpression : CodeExpression

Remarks

A System.CodeDom.CodeMethodReferenceExpression can be used to represent an expression of the form Object.Method.

The CodeMethodReferenceExpression.TargetObject property indicates the object that contains the method. The CodeMethodReferenceExpression.MethodName property indicates the name of the method.

A System.CodeDom.CodeMethodReferenceExpression is used with a System.CodeDom.CodeMethodInvokeExpression to indicate the method to invoke, and with a System.CodeDom.CodeDelegateCreateExpression to indicate the method to handle the event.

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0