TrackingTagSpan<T> Constructor
Initializes a new instance of a TrackingTagSpan<T>.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
声明
Public Sub New ( _
span As ITrackingSpan, _
tag As T _
)
public TrackingTagSpan(
ITrackingSpan span,
T tag
)
public:
TrackingTagSpan(
ITrackingSpan^ span,
T tag
)
new :
span:ITrackingSpan *
tag:'T -> TrackingTagSpan
public function TrackingTagSpan(
span : ITrackingSpan,
tag : T
)
Parameters
- span
Type: Microsoft.VisualStudio.Text.ITrackingSpan
The tracking span with which to associate the tag.
- tag
Type: T
The tag associated with the span.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | span or 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.