Partilhar via


IClassificationTypeRegistryService.CreateTransientClassificationType Method

Definition

Overloads

CreateTransientClassificationType(IClassificationType[])

Creates an IClassificationType that persists only for the duration of this session. This IClassificationType must inherit from at least one IClassificationType.

CreateTransientClassificationType(IEnumerable<IClassificationType>)

Creates an IClassificationType that persists only for the duration of this session. This IClassificationType must inherit from at least one IClassificationType.

CreateTransientClassificationType(IClassificationType[])

Creates an IClassificationType that persists only for the duration of this session. This IClassificationType must inherit from at least one IClassificationType.

public:
 Microsoft::VisualStudio::Text::Classification::IClassificationType ^ CreateTransientClassificationType(... cli::array <Microsoft::VisualStudio::Text::Classification::IClassificationType ^> ^ baseTypes);
public Microsoft.VisualStudio.Text.Classification.IClassificationType CreateTransientClassificationType (params Microsoft.VisualStudio.Text.Classification.IClassificationType[] baseTypes);
abstract member CreateTransientClassificationType : Microsoft.VisualStudio.Text.Classification.IClassificationType[] -> Microsoft.VisualStudio.Text.Classification.IClassificationType
Public Function CreateTransientClassificationType (ParamArray baseTypes As IClassificationType()) As IClassificationType

Parameters

baseTypes
IClassificationType[]

The base types for this IClassificationType.

Returns

A new IClassificationType which inherits from all baseTypes.

Exceptions

baseTypes is null.

baseTypes has zero items.

Remarks

This function is intended primarily to aid in the runtime display of overlapping classifications.

The classification names generated by this function 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.

Applies to

CreateTransientClassificationType(IEnumerable<IClassificationType>)

Creates an IClassificationType that persists only for the duration of this session. This IClassificationType must inherit from at least one IClassificationType.

public:
 Microsoft::VisualStudio::Text::Classification::IClassificationType ^ CreateTransientClassificationType(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Classification::IClassificationType ^> ^ baseTypes);
public Microsoft.VisualStudio.Text.Classification.IClassificationType CreateTransientClassificationType (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Classification.IClassificationType> baseTypes);
abstract member CreateTransientClassificationType : seq<Microsoft.VisualStudio.Text.Classification.IClassificationType> -> Microsoft.VisualStudio.Text.Classification.IClassificationType
Public Function CreateTransientClassificationType (baseTypes As IEnumerable(Of IClassificationType)) As IClassificationType

Parameters

baseTypes
IEnumerable<IClassificationType>

The base types for this IClassificationType.

Returns

A new IClassificationType that inherits from all of baseTypes.

Exceptions

baseTypes is null.

baseTypes has zero items.

Remarks

This function is intended primarily to aid in the runtime display of overlapping classifications.

The classification names generated by this function 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.

Applies to