ItemCollection.GetItems<T> 方法

定义

从此项集合中返回属于指定类型的所有项。

public:
generic <typename T>
 where T : System::Data::Metadata::Edm::GlobalItem System::Collections::ObjectModel::ReadOnlyCollection<T> ^ GetItems();
public:
generic <typename T>
 where T : System::Data::Metadata::Edm::GlobalItem virtual System::Collections::ObjectModel::ReadOnlyCollection<T> ^ GetItems();
public System.Collections.ObjectModel.ReadOnlyCollection<T> GetItems<T> () where T : System.Data.Metadata.Edm.GlobalItem;
public virtual System.Collections.ObjectModel.ReadOnlyCollection<T> GetItems<T> () where T : System.Data.Metadata.Edm.GlobalItem;
member this.GetItems : unit -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> System.Data.Metadata.Edm.GlobalItem)> (requires 'T :> System.Data.Metadata.Edm.GlobalItem)
abstract member GetItems : unit -> System.Collections.ObjectModel.ReadOnlyCollection<'T (requires 'T :> System.Data.Metadata.Edm.GlobalItem)> (requires 'T :> System.Data.Metadata.Edm.GlobalItem)
override this.GetItems : unit -> 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) () As ReadOnlyCollection(Of T)
Public Overridable Function GetItems(Of T As GlobalItem) () As ReadOnlyCollection(Of T)

类型参数

T

由方法返回的类型。

返回

一个 ReadOnlyCollection<T> 类型的集合,其中包含属于指定类型的所有项。

适用于