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.
Gets a list of read-only regions that overlap the given span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Function GetReadOnlyExtents ( _
span As Span _
) As NormalizedSpanCollection
NormalizedSpanCollection GetReadOnlyExtents(
Span span
)
NormalizedSpanCollection^ GetReadOnlyExtents(
Span span
)
abstract GetReadOnlyExtents :
span:Span -> NormalizedSpanCollection
function GetReadOnlyExtents(
span : Span
) : NormalizedSpanCollection
Parameters
span
Type: Microsoft.VisualStudio.Text.SpanThe span to check for read-only regions.
Return Value
Type: Microsoft.VisualStudio.Text.NormalizedSpanCollection
A NormalizedSpanCollection of read-only regions that overlap the given span.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | span is nulla null reference (Nothing in Visual Basic). |
| InvalidOperationException | TakeThreadOwnership has previously been called, and this call is being made from a different thread. |
| ArgumentOutOfRangeException | span is past the end of the buffer. |
Remarks
This method returns an empty list if there are no read-only regions overlapping the span, or if the span is zero-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.