共用方式為


CollectionConstantNode 建構函式

定義

建立 CollectionConstantNode

public CollectionConstantNode (System.Collections.Generic.IEnumerable<object> objectCollection, string literalText, Microsoft.OData.Edm.IEdmCollectionTypeReference collectionType);
new Microsoft.OData.UriParser.CollectionConstantNode : seq<obj> * string * Microsoft.OData.Edm.IEdmCollectionTypeReference -> Microsoft.OData.UriParser.CollectionConstantNode
Public Sub New (objectCollection As IEnumerable(Of Object), literalText As String, collectionType As IEdmCollectionTypeReference)

參數

objectCollection
IEnumerable<Object>

物件的集合。

literalText
String

此節點值的常值文字,其格式會根據 OData URI 常值格式化規則。

collectionType
IEdmCollectionTypeReference

集合型別的參考。

例外狀況

如果輸入 literalText 為 null 時則會擲回。

適用於