DetermineLocalityCallback 委托
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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
要获取其位置的差异的类型。 这保证只是一种类型。
返回值
如果需要 ,则为要回退到默认位置的位置(如果需要)。
- 属性
注解
现在,此回调和使用它的方法是 deprectated 的。 ITextDifferencingService使用此回调时,或实现该接口的扩展的默认实现都不是必需的。