SingleEntityCastNode Constructor
Initializes a new instance of the SingleEntityCastNode class.
Namespace: Microsoft.Data.OData.Query.SemanticAst
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub New ( _
source As SingleEntityNode, _
entityType As IEdmEntityType _
)
'Usage
Dim source As SingleEntityNode
Dim entityType As IEdmEntityType
Dim instance As New SingleEntityCastNode(source, _
entityType)
public SingleEntityCastNode(
SingleEntityNode source,
IEdmEntityType entityType
)
public:
SingleEntityCastNode(
SingleEntityNode^ source,
IEdmEntityType^ entityType
)
new :
source:SingleEntityNode *
entityType:IEdmEntityType -> SingleEntityCastNode
public function SingleEntityCastNode(
source : SingleEntityNode,
entityType : IEdmEntityType
)
Parameters
- source
Type: Microsoft.Data.OData.Query.SemanticAst.SingleEntityNode
Source SingleValueNode that is being cast.
- entityType
Type: Microsoft.Data.Edm.IEdmEntityType
Type to cast to.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Throws if the input entityType is null. |