IClassificationTypeRegistryService.GetClassificationType 方法

获取 IClassificationType 标识的对象由一个指定类型。

命名空间:  Microsoft.VisualStudio.Text.Classification
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
Function GetClassificationType ( _
    type As String _
) As IClassificationType
IClassificationType GetClassificationType(
    string type
)
IClassificationType^ GetClassificationType(
    String^ type
)
abstract GetClassificationType : 
        type:string -> IClassificationType
function GetClassificationType(
    type : String
) : IClassificationType

参数

  • type
    类型:String

    分类类型的名称。

返回值

类型:Microsoft.VisualStudio.Text.Classification.IClassificationType
分类类型;如果没有该名称的分类类型,则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参阅

参考

IClassificationTypeRegistryService 接口

Microsoft.VisualStudio.Text.Classification 命名空间