CollectionFunctionCallNode Constructor
Creates a CollectionFunctionCallNode to represent a function call that returns a collection
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), _
returnedCollectionType As IEdmCollectionTypeReference, _
source As QueryNode _
)
'Usage
Dim name As String
Dim functionImports As IEnumerable(Of IEdmFunctionImport)
Dim parameters As IEnumerable(Of QueryNode)
Dim returnedCollectionType As IEdmCollectionTypeReference
Dim source As QueryNode
Dim instance As New CollectionFunctionCallNode(name, functionImports, _
parameters, returnedCollectionType, _
source)
public CollectionFunctionCallNode(
string name,
IEnumerable<IEdmFunctionImport> functionImports,
IEnumerable<QueryNode> parameters,
IEdmCollectionTypeReference returnedCollectionType,
QueryNode source
)
public:
CollectionFunctionCallNode(
String^ name,
IEnumerable<IEdmFunctionImport^>^ functionImports,
IEnumerable<QueryNode^>^ parameters,
IEdmCollectionTypeReference^ returnedCollectionType,
QueryNode^ source
)
new :
name:string *
functionImports:IEnumerable<IEdmFunctionImport> *
parameters:IEnumerable<QueryNode> *
returnedCollectionType:IEdmCollectionTypeReference *
source:QueryNode -> CollectionFunctionCallNode
public function CollectionFunctionCallNode(
name : String,
functionImports : IEnumerable<IEdmFunctionImport>,
parameters : IEnumerable<QueryNode>,
returnedCollectionType : IEdmCollectionTypeReference,
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 should represent.
- parameters
Type: System.Collections.Generic.IEnumerable<QueryNode>
the list of already bound parameters to this function
- returnedCollectionType
Type: Microsoft.Data.Edm.IEdmCollectionTypeReference
the type of the collection returned by this function.
- source
Type: Microsoft.Data.OData.Query.SemanticAst.QueryNode
The parent of this CollectionFunctionCallNode.
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 a primitive or complex type. |