StoreItemCollection.GetPrimitiveTypes 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
傳回 PrimitiveType 物件的集合。
命名空間: System.Data.Entity.Core.Metadata.Edm
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Overridable Function GetPrimitiveTypes As ReadOnlyCollection(Of PrimitiveType)
'用途
Dim instance As StoreItemCollection
Dim returnValue As ReadOnlyCollection(Of PrimitiveType)
returnValue = instance.GetPrimitiveTypes()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public virtual ReadOnlyCollection<PrimitiveType> GetPrimitiveTypes()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
virtual ReadOnlyCollection<PrimitiveType^>^ GetPrimitiveTypes()
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
abstract GetPrimitiveTypes : unit -> ReadOnlyCollection<PrimitiveType>
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
override GetPrimitiveTypes : unit -> ReadOnlyCollection<PrimitiveType>
public function GetPrimitiveTypes() : ReadOnlyCollection<PrimitiveType>
傳回值
類型:System.Collections.ObjectModel.ReadOnlyCollection<PrimitiveType>
ReadOnlyCollection<T> 物件,表示 PrimitiveType 物件的集合。