DetermineLocalityCallback 委托

注意:此 API 现在已过时。

将确定给定差异的位置键入和左/右侧字符串。

命名空间:  Microsoft.VisualStudio.Text.Differencing
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
<ObsoleteAttribute("Methods that use this callback are now deprecated, and instances of this callback will not be used.")> _
Public Delegate Function DetermineLocalityCallback ( _
    differenceType As StringDifferenceTypes, _
    leftStrings As IList(Of String), _
    rightStrings As IList(Of String) _
) As Nullable(Of Integer)
[ObsoleteAttribute("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<string> leftStrings,
    IList<string> rightStrings
)
[ObsoleteAttribute(L"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<String^>^ leftStrings, 
    IList<String^>^ rightStrings
)
[<ObsoleteAttribute("Methods that use this callback are now deprecated, and instances of this callback will not be used.")>]
type DetermineLocalityCallback = 
    delegate of  
        differenceType:StringDifferenceTypes * 
        leftStrings:IList<string> * 
        rightStrings:IList<string> -> Nullable<int>
JScript 不支持委托。

参数

  • leftStrings
    类型:IList<String>

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

  • rightStrings
    类型:IList<String>

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

返回值

类型:Nullable<Int32>
位于的位置,如果需要或 nullnull 引用(在 Visual Basic 中为 Nothing) 返回默认位置。

请参阅

参考

Microsoft.VisualStudio.Text.Differencing 命名空间