閱讀英文

共用方式為


NormalizedSnapshotSpanCollection.Union Method

Calculates the union of two snapshot span collections and normalizes the result.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

public static NormalizedSnapshotSpanCollection Union(
    NormalizedSnapshotSpanCollection left,
    NormalizedSnapshotSpanCollection right
)

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The normalized union of the two 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

See Also

Reference

NormalizedSnapshotSpanCollection Class

Microsoft.VisualStudio.Text Namespace