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
'Declaration
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.SnapshotSpanThe SnapshotSpan with which to associate the tag.
tag
Type: TThe 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.