Difference 建構函式
使用指定的左右延伸與前後比對項目,初始化 Difference 的新執行個體。
命名空間: Microsoft.VisualStudio.Text.Differencing
組件: Microsoft.VisualStudio.Text.Data (在 Microsoft.VisualStudio.Text.Data.dll 中)
語法
'宣告
Public Sub New ( _
left As Span, _
right As Span, _
before As Match, _
after As Match _
)
public Difference(
Span left,
Span right,
Match before,
Match after
)
public:
Difference(
Span left,
Span right,
Match^ before,
Match^ after
)
new :
left:Span *
right:Span *
before:Match *
after:Match -> Difference
public function Difference(
left : Span,
right : Span,
before : Match,
after : Match
)
參數
left
類型:Microsoft.VisualStudio.Text.Span差異的左側 (長度可能為零)。
right
類型:Microsoft.VisualStudio.Text.Span差異的右側 (長度可能為零)。
before
類型:Microsoft.VisualStudio.Text.Differencing.Match此差異之前的無差異項目範圍。
after
類型:Microsoft.VisualStudio.Text.Differencing.Match此差異之後的無差異項目範圍。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。