共用方式為


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> 的集合,其中包含指定型別的所有項目。

適用於