Click or drag to resize

IInvocationExpression Interface



Represents a C# or VB method invocation.

Namespace:  Microsoft.CodeAnalysis.Semantics
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public interface IInvocationExpression : IHasArgumentsExpression, 
	IOperation

The IInvocationExpression type exposes the following members.

Properties
  NameDescription
Public propertyArgumentsInParameterOrder
Arguments of the invocation, excluding the instance argument. Arguments are in parameter order, and params/ParamArray arguments have been collected into arrays. Default values are supplied for optional arguments missing in source.
(Inherited from IHasArgumentsExpression.)
Public propertyArgumentsInSourceOrder
Arguments of the invocation, excluding the instance argument. Arguments are in the order specified in source, and params/ParamArray arguments have been collected into arrays. Arguments are not present unless supplied in source.
Public propertyConstantValue
If the operation is an expression that evaluates to a constant value, HasValue is true and Value is the value of the expression. Otherwise, HasValue is false.
(Inherited from IOperation.)
Public propertyInstance
'This' or 'Me' instance to be supplied to the method, or null if the method is static.
Public propertyIsInvalid
Indicates whether the operation is invalid, either semantically or syntactically.
(Inherited from IOperation.)
Public propertyIsVirtual
True if the invocation uses a virtual mechanism, and false otherwise.
Public propertyKind
Identifies the kind of the operation.
(Inherited from IOperation.)
Public propertySyntax
Syntax that was analyzed to produce the operation.
(Inherited from IOperation.)
Public propertyTargetMethod
Method to be invoked.
Public propertyType
Result type of the operation, or null if the operation does not produce a result.
(Inherited from IOperation.)
Top
Methods
Remarks
This interface is reserved for implementation by its associated APIs. We reserve the right to change it in the future.
See Also