ClassificationTag Constructor
Creates a new tag associated with the given type of classification.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
声明
Public Sub New ( _
type As IClassificationType _
)
public ClassificationTag(
IClassificationType type
)
public:
ClassificationTag(
IClassificationType^ type
)
new :
type:IClassificationType -> ClassificationTag
public function ClassificationTag(
type : IClassificationType
)
Parameters
- type
Type: Microsoft.VisualStudio.Text.Classification.IClassificationType
The type of classification.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | type 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.