Match Constructor
Creates a match from two spans of equal length.
Namespace: Microsoft.VisualStudio.Text.Differencing
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Sub New ( _
left As Span, _
right As Span _
)
public Match(
Span left,
Span right
)
public:
Match(
Span left,
Span right
)
new :
left:Span *
right:Span -> Match
public function Match(
left : Span,
right : Span
)
Parameters
- left
Type: Microsoft.VisualStudio.Text.Span
The span from the left sequence.
- right
Type: Microsoft.VisualStudio.Text.Span
The span from the right sequence.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The left span or right span is null. |
ArgumentException | The spans are not of equal length. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.