StringDifferenceOptions.Locality 属性

定义

注意

This value is no longer used and will be ignored.

差异元素 (行、范围或字符) 的最大距离可以移动,但仍被视为同一源的一部分。 值0将禁用位置检查。

public:
 property int Locality { int get(); void set(int value); };
public:
 property int Locality { int get(); void set(int value); };
[System.Obsolete("This value is no longer used and will be ignored.")]
public int Locality { get; set; }
[System.Obsolete("This value is no longer used and will be ignored.")]
public int Locality { [System.Runtime.CompilerServices.IsReadOnly] get; set; }
[<System.Obsolete("This value is no longer used and will be ignored.")>]
member this.Locality : int with get, set
[<System.Obsolete("This value is no longer used and will be ignored.")>]
[<get: System.Runtime.CompilerServices.IsReadOnly>]
member this.Locality : int with get, set
Public Property Locality As Integer

属性值

Int32

最大的距离(以行数为单位)。

属性

注解

现在不推荐使用默认差异实现中的位置,并且忽略此字段的值 (与) 为 0

例如,如果将 "位置" 设置为 "100",则会将某行视为相同的行,如果它由100分隔,或者其相邻行中的行数减少。 如果由100行分隔,则将其视为不同的行。

适用于