Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Calculates the difference between two normalized snapshot span collections and normalizes the result.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Shared Function Difference ( _
left As NormalizedSnapshotSpanCollection, _
right As NormalizedSnapshotSpanCollection _
) As NormalizedSnapshotSpanCollection
public static NormalizedSnapshotSpanCollection Difference(
NormalizedSnapshotSpanCollection left,
NormalizedSnapshotSpanCollection right
)
public:
static NormalizedSnapshotSpanCollection^ Difference(
NormalizedSnapshotSpanCollection^ left,
NormalizedSnapshotSpanCollection^ right
)
static member Difference :
left:NormalizedSnapshotSpanCollection *
right:NormalizedSnapshotSpanCollection -> NormalizedSnapshotSpanCollection
public static function Difference(
left : NormalizedSnapshotSpanCollection,
right : NormalizedSnapshotSpanCollection
) : NormalizedSnapshotSpanCollection
Parameters
- left
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The first normalized span collection.
- right
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The second normalized span collection.
Return Value
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The (normalized) set of differences between the normalized snapshot span collections..
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | left or right is nulla null reference (Nothing in Visual Basic). |
ArgumentException | The collections refer to different snapshots. |
.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.