MetadataWorkspace.GetItems 方法
定义
重载
| GetItems(DataSpace) |
获取指定数据模型中的所有项。Gets all the items in the specified data model. |
| GetItems<T>(DataSpace) |
获取指定数据模型中的所有项。Gets all the items in the specified data model. |
GetItems(DataSpace)
获取指定数据模型中的所有项。Gets all the items in the specified data model.
public:
System::Collections::ObjectModel::ReadOnlyCollection<System::Data::Metadata::Edm::GlobalItem ^> ^ GetItems(System::Data::Metadata::Edm::DataSpace dataSpace);
public System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Metadata.Edm.GlobalItem> GetItems (System.Data.Metadata.Edm.DataSpace dataSpace);
member this.GetItems : System.Data.Metadata.Edm.DataSpace -> System.Collections.ObjectModel.ReadOnlyCollection<System.Data.Metadata.Edm.GlobalItem>
Public Function GetItems (dataSpace As DataSpace) As ReadOnlyCollection(Of GlobalItem)
参数
- dataSpace
- DataSpace
需要其项列表的概念模型。The conceptual model for which the list of items is needed.
返回
一个 ReadOnlyCollection<T> 类型的集合,其中包含指定数据模型中的所有项。A collection of type ReadOnlyCollection<T> that contains all the items in the specified data model.
适用于
GetItems<T>(DataSpace)
获取指定数据模型中的所有项。Gets all the items in the specified data model.
public:
generic <typename T>
where T : System::Data::Metadata::Edm::GlobalItem System::Collections::ObjectModel::ReadOnlyCollection<T> ^ GetItems(System::Data::Metadata::Edm::DataSpace dataSpace);
public System.Collections.ObjectModel.ReadOnlyCollection<T> GetItems<T> (System.Data.Metadata.Edm.DataSpace dataSpace) where T : System.Data.Metadata.Edm.GlobalItem;
member this.GetItems : System.Data.Metadata.Edm.DataSpace -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> System.Data.Metadata.Edm.GlobalItem)> (requires 'T :> System.Data.Metadata.Edm.GlobalItem)
Public Function GetItems(Of T As GlobalItem) (dataSpace As DataSpace) As ReadOnlyCollection(Of T)
类型参数
- T
由方法返回的类型。The type returned by the method.
参数
- dataSpace
- DataSpace
需要其项列表的概念模型。The conceptual model for which the list of items is needed.
返回
一个 ReadOnlyCollection<T> 类型的集合,其中包含指定数据模型中的所有项。A collection of type ReadOnlyCollection<T> that contains all the items in the specified data model.