Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of a VirtualSnapshotSpan from the specified start and end points.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Public Sub New ( _
start As VirtualSnapshotPoint, _
end As VirtualSnapshotPoint _
)
public VirtualSnapshotSpan(
VirtualSnapshotPoint start,
VirtualSnapshotPoint end
)
public:
VirtualSnapshotSpan(
VirtualSnapshotPoint start,
VirtualSnapshotPoint end
)
new :
start:VirtualSnapshotPoint *
end:VirtualSnapshotPoint -> VirtualSnapshotSpan
public function VirtualSnapshotSpan(
start : VirtualSnapshotPoint,
end : VirtualSnapshotPoint
)
Parameters
start
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPointThe start point.
end
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPointThe end point, which must be from the same ITextSnapshot as the start point.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The snapshot points belong to different ITextSnapshot objects. |
| ArgumentOutOfRangeException | The end point comes before the start point. |
.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.