TagSpan<T> Constructor
Initializes a new instance of a TagSpan<T> with the specified snapshot span and tag.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Déclaration
Public Sub New ( _
span As SnapshotSpan, _
tag As T _
)
public TagSpan(
SnapshotSpan span,
T tag
)
public:
TagSpan(
SnapshotSpan span,
T tag
)
new :
span:SnapshotSpan *
tag:'T -> TagSpan
public function TagSpan(
span : SnapshotSpan,
tag : T
)
Parameters
- span
Type: Microsoft.VisualStudio.Text.SnapshotSpan
The SnapshotSpan with which to associate the tag.
- tag
Type: T
The tag associated with the span.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | tag 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.