IClassificationTypeRegistryService::CreateTransientClassificationType Method (IEnumerable<IClassificationType^>^)

 

Creates an IClassificationType that persists only for the duration of this session..

Namespace:   Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

IClassificationType^ CreateTransientClassificationType(
	IEnumerable<IClassificationType^>^ baseTypes
)

Parameters

baseTypes
Type: System.Collections.Generic::IEnumerable<IClassificationType^>^

The base types for this IClassificationType.

Return Value

Type: Microsoft.VisualStudio.Text.Classification::IClassificationType^

A new IClassificationType that inherits from all of 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 run time 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.

Return to top
Show: