NormalizedSnapshotSpanCollection Constructor (IEnumerable<SnapshotSpan>)
Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of SnapshotSpan objects.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'宣告
Public Sub New ( _
snapshotSpans As IEnumerable(Of SnapshotSpan) _
)
public NormalizedSnapshotSpanCollection(
IEnumerable<SnapshotSpan> snapshotSpans
)
public:
NormalizedSnapshotSpanCollection(
IEnumerable<SnapshotSpan>^ snapshotSpans
)
new :
snapshotSpans:IEnumerable<SnapshotSpan> -> NormalizedSnapshotSpanCollection
public function NormalizedSnapshotSpanCollection(
snapshotSpans : IEnumerable<SnapshotSpan>
)
Parameters
- snapshotSpans
Type: System.Collections.Generic.IEnumerable<SnapshotSpan>
A set of SnapshotSpan objects.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | snapshotSpans is nulla null reference (Nothing in Visual Basic). |
ArgumentException | A SnapshotSpan is uninitialized, or it does not refer to the same ITextSnapshot as the other snapshot spans, or it refers to an uninitialized ITextSnapshot. |
.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.
See Also
Reference
NormalizedSnapshotSpanCollection Class