IClassificationTypeRegistryService::CreateTransientClassificationType Method (array<IClassificationType^>^)
Visual Studio 2015
Creates an IClassificationType that persists only for the duration of this session.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
IClassificationType^ CreateTransientClassificationType(
... array<IClassificationType^>^ baseTypes
)
Parameters
- baseTypes
-
Type:
array<Microsoft.VisualStudio.Text.Classification::IClassificationType^>^
The base types for this IClassificationType.
Return Value
Type: Microsoft.VisualStudio.Text.Classification::IClassificationType^A new IClassificationType which inherits from all baseTypes.
| Exception | Condition |
|---|---|
| ArgumentNullException | baseTypes is null. |
| InvalidOperationException | baseTypes has zero items. |
This IClassificationType must inherit from at least one IClassificationType.
This method is intended to aid in the runtime display of overlapping classifications.
The classification names generated by this method are determined at runtime and are subject to change in future revisions. The only guarantee made is that if two transient IClassificationType objects are created with the same base types, they will have the same classification name.
Show: