Orderer.Order<TValue,TMetadata> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
对所有可排序的项(即实现接口的项)进行排序 IOrderable 。
public:
generic <typename TValue, typename TMetadata>
where TValue : class where TMetadata : Microsoft::VisualStudio::Utilities::IOrderable static System::Collections::Generic::IList<Lazy<TValue, TMetadata> ^> ^ Order(System::Collections::Generic::IEnumerable<Lazy<TValue, TMetadata> ^> ^ itemsToOrder);
public static System.Collections.Generic.IList<Lazy<TValue,TMetadata>> Order<TValue,TMetadata> (System.Collections.Generic.IEnumerable<Lazy<TValue,TMetadata>> itemsToOrder) where TValue : class where TMetadata : Microsoft.VisualStudio.Utilities.IOrderable;
static member Order : seq<Lazy<'Value, 'Metadata>> -> System.Collections.Generic.IList<Lazy<'Value, 'Metadata>> (requires 'Value : null and 'Metadata :> Microsoft.VisualStudio.Utilities.IOrderable)
Public Shared Function Order(Of TValue As Class, TMetadata As Class) (itemsToOrder As IEnumerable(Of Lazy(Of TValue, TMetadata))) As IList(Of Lazy(Of TValue, TMetadata))
类型参数
- TValue
值的类型。
- TMetadata
元数据的类型。
参数
- itemsToOrder
- IEnumerable<Lazy<TValue,TMetadata>>
要排序的项的列表。
返回
已排序项的列表。
例外
itemsToOrder 为 null。