Compartilhar via


DetermineLocalityCallback Delegate

Note: This API is now obsolete.

Determining the locality for a given difference type and left/right strings.

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaração
<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 does not support delegates.

Parameters

Return Value

Type: System.Nullable<Int32>
The locality, if desired, or nulla null reference (Nothing in Visual Basic) to fall back to the default locality.

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace