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 ClassificationSpan.
Namespace: Microsoft.VisualStudio.Text.Classification
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Public Sub New ( _
span As SnapshotSpan, _
classification As IClassificationType _
)
public ClassificationSpan(
SnapshotSpan span,
IClassificationType classification
)
public:
ClassificationSpan(
SnapshotSpan span,
IClassificationType^ classification
)
new :
span:SnapshotSpan *
classification:IClassificationType -> ClassificationSpan
public function ClassificationSpan(
span : SnapshotSpan,
classification : IClassificationType
)
Parameters
span
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe span of text to which the classification applies.
classification
Type: Microsoft.VisualStudio.Text.Classification.IClassificationTypeThe classification type of the span.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | classification is nulla null reference (Nothing in Visual Basic). |
.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.