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 不支援委派。
參數
differenceType
類型:Microsoft.VisualStudio.Text.Differencing.StringDifferenceTypes要取得位置的差異型別。 這必定是單一型別。
leftStrings
類型:IList<String>左側文字,分解成字串清單。
rightStrings
類型:IList<String>右側文字,分解成字串清單。
傳回值
類型:Nullable<Int32>
所在位置,如有需要,或nullnull 參考 (即 Visual Basic 中的 Nothing) ,改為使用預設位置。