ItemCollection.GetItems<T> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从此项集合中返回属于指定类型的所有项。
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> 类型的集合,其中包含属于指定类型的所有项。