Share via


EntityCollectionFunctionCallNode Constructor

Creates an EntityCollecitonFunctionCallNode to represent a function call that returns a collection of entities.

Namespace:  Microsoft.Data.OData.Query.SemanticAst
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    functionImports As IEnumerable(Of IEdmFunctionImport), _
    parameters As IEnumerable(Of QueryNode), _
    returnedCollectionTypeReference As IEdmCollectionTypeReference, _
    entitySet As IEdmEntitySet, _
    source As QueryNode _
)
'Usage
Dim name As String 
Dim functionImports As IEnumerable(Of IEdmFunctionImport)
Dim parameters As IEnumerable(Of QueryNode)
Dim returnedCollectionTypeReference As IEdmCollectionTypeReference 
Dim entitySet As IEdmEntitySet 
Dim source As QueryNode 

Dim instance As New EntityCollectionFunctionCallNode(name, functionImports, _
    parameters, returnedCollectionTypeReference, _
    entitySet, source)
public EntityCollectionFunctionCallNode(
    string name,
    IEnumerable<IEdmFunctionImport> functionImports,
    IEnumerable<QueryNode> parameters,
    IEdmCollectionTypeReference returnedCollectionTypeReference,
    IEdmEntitySet entitySet,
    QueryNode source
)
public:
EntityCollectionFunctionCallNode(
    String^ name, 
    IEnumerable<IEdmFunctionImport^>^ functionImports, 
    IEnumerable<QueryNode^>^ parameters, 
    IEdmCollectionTypeReference^ returnedCollectionTypeReference, 
    IEdmEntitySet^ entitySet, 
    QueryNode^ source
)
new : 
        name:string * 
        functionImports:IEnumerable<IEdmFunctionImport> * 
        parameters:IEnumerable<QueryNode> * 
        returnedCollectionTypeReference:IEdmCollectionTypeReference * 
        entitySet:IEdmEntitySet * 
        source:QueryNode -> EntityCollectionFunctionCallNode
public function EntityCollectionFunctionCallNode(
    name : String, 
    functionImports : IEnumerable<IEdmFunctionImport>, 
    parameters : IEnumerable<QueryNode>, 
    returnedCollectionTypeReference : IEdmCollectionTypeReference, 
    entitySet : IEdmEntitySet, 
    source : QueryNode
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Throws if the provided name is null.

ArgumentNullException

Throws if the provided collection type reference is null.

ArgumentException

Throws if the element type of the provided collection type reference is not an entity type.

ArgumentNullException

Throws if the input function imports is null

See Also

Reference

EntityCollectionFunctionCallNode Class

Microsoft.Data.OData.Query.SemanticAst Namespace