共用方式為


MetadataWorkspace.GetItemCollection 方法

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

取得 MetadataWorkspace 項目。

命名空間:  System.Data.Entity.Core.Metadata.Edm
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public Overridable Function GetItemCollection ( _
    dataSpace As DataSpace _
) As ItemCollection
'用途
Dim instance As MetadataWorkspace 
Dim dataSpace As DataSpace 
Dim returnValue As ItemCollection 

returnValue = instance.GetItemCollection(dataSpace)
public virtual ItemCollection GetItemCollection(
    DataSpace dataSpace
)
public:
virtual ItemCollection^ GetItemCollection(
    DataSpace dataSpace
)
abstract GetItemCollection : 
        dataSpace:DataSpace -> ItemCollection  
override GetItemCollection : 
        dataSpace:DataSpace -> ItemCollection
public function GetItemCollection(
    dataSpace : DataSpace
) : ItemCollection

參數

傳回值

類型:System.Data.Entity.Core.Metadata.Edm.ItemCollection
MetadataWorkspace 項目。

請參閱

參考

MetadataWorkspace 類別

System.Data.Entity.Core.Metadata.Edm 命名空間