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
- name
Type: System.String
The name of this function.
- functionImports
Type: System.Collections.Generic.IEnumerable<IEdmFunctionImport>
the list of function imports that this node represents.
- parameters
Type: System.Collections.Generic.IEnumerable<QueryNode>
the list of parameters to this function
- returnedCollectionTypeReference
Type: Microsoft.Data.Edm.IEdmCollectionTypeReference
the type the entity collection returned by this function. The element type must be an entity type.
- entitySet
Type: Microsoft.Data.Edm.IEdmEntitySet
the set containing entities returned by this function
- source
Type: Microsoft.Data.OData.Query.SemanticAst.QueryNode
the semantically bound parent of this EntityCollectionFunctionCallNode.
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 |