共用方式為


EdmTypeSemantics.AsCollection(IEdmTypeReference) 方法

定義

如果這個參考屬於集合類型,這會傳回型別定義的有效集合型別參考。 否則傳回錯誤的集合型別參考。

public static Microsoft.OData.Edm.IEdmCollectionTypeReference AsCollection (this Microsoft.OData.Edm.IEdmTypeReference type);
static member AsCollection : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.IEdmCollectionTypeReference
<Extension()>
Public Function AsCollection (type As IEdmTypeReference) As IEdmCollectionTypeReference

參數

type
IEdmTypeReference

呼叫物件的參考。

傳回

如果此參考的定義是集合型別,則為有效的集合型別參考, 否則為錯誤的集合型別參考。

適用於