ContainerSortingProvider.SortLists 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取已排序的列表。 此实现使用标准 List>对象< 对列表进行排序。Sort(IComparer) 方法。 IComparer 由 GetComparer(ISfcSimpleNode, ISfcSimpleNode) 方法获取。
仅当 AreListsComparable(ISfcSimpleList, ISfcSimpleList) 返回 true 时,才会调用该方法。
如果提供程序可以提供更快的排序速度,则提供程序将替代此方法。 如果列表已排序,则可以返回 orignal 列表。
public void SortLists(Microsoft.SqlServer.Management.Sdk.Sfc.ISfcSimpleList source, Microsoft.SqlServer.Management.Sdk.Sfc.ISfcSimpleList target, out System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Sdk.Sfc.ISfcSimpleNode> sortedSource, out System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Sdk.Sfc.ISfcSimpleNode> sortedTarget);
member this.SortLists : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcSimpleList * Microsoft.SqlServer.Management.Sdk.Sfc.ISfcSimpleList * seq * seq -> unit
Public Sub SortLists (source As ISfcSimpleList, target As ISfcSimpleList, ByRef sortedSource As IEnumerable(Of ISfcSimpleNode), ByRef sortedTarget As IEnumerable(Of ISfcSimpleNode))
参数
- source
- ISfcSimpleList
- target
- ISfcSimpleList
- sortedSource
- IEnumerable<ISfcSimpleNode>
- sortedTarget
- IEnumerable<ISfcSimpleNode>