DetermineLocalityCallback 委托

定义

注意

Methods that use this callback are now deprecated, and instances of this callback will not be used.

用于确定给定差异类型和左/右字符串的位置的委托。

public delegate Nullable<int> DetermineLocalityCallback(StringDifferenceTypes differenceType, IList<System::String ^> ^ leftStrings, IList<System::String ^> ^ rightStrings);
[System.Obsolete("Methods that use this callback are now deprecated, and instances of this callback will not be used.")]
public delegate int? DetermineLocalityCallback(StringDifferenceTypes differenceType, IList<string> leftStrings, IList<string> rightStrings);
[<System.Obsolete("Methods that use this callback are now deprecated, and instances of this callback will not be used.")>]
type DetermineLocalityCallback = delegate of StringDifferenceTypes * IList<string> * IList<string> -> Nullable<int>
Public Delegate Function DetermineLocalityCallback(differenceType As StringDifferenceTypes, leftStrings As IList(Of String), rightStrings As IList(Of String)) As Nullable(Of Integer) 

参数

differenceType
StringDifferenceTypes

要获取其位置的差异的类型。 这保证只是一种类型。

leftStrings
IList<String>

左侧文本,分解为字符串列表。

rightStrings
IList<String>

适当的文本,分解为字符串列表。

返回值

Nullable<Int32>

如果需要 ,则为要回退到默认位置的位置(如果需要)。

属性

注解

现在,此回调和使用它的方法是 deprectated 的。 ITextDifferencingService使用此回调时,或实现该接口的扩展的默认实现都不是必需的。

适用于