IContentTypeRegistryService.GetContentType 方法

获取具有指定的类型名称的 IContentType 对象。

命名空间:  Microsoft.VisualStudio.Utilities
程序集:  Microsoft.VisualStudio.CoreUtility(在 Microsoft.VisualStudio.CoreUtility.dll 中)

语法

声明
Function GetContentType ( _
    typeName As String _
) As IContentType
IContentType GetContentType(
    string typeName
)
IContentType^ GetContentType(
    String^ typeName
)
abstract GetContentType : 
        typeName:string -> IContentType
function GetContentType(
    typeName : String
) : IContentType

参数

  • typeName
    类型:String

    内容类型的名称。 名称比较不区分大小写。

返回值

类型:Microsoft.VisualStudio.Utilities.IContentType
内容类型或 nullnull 引用(在 Visual Basic 中为 Nothing) ,如果未找到任何内容类型。

.NET Framework 安全性

请参阅

参考

IContentTypeRegistryService 接口

Microsoft.VisualStudio.Utilities 命名空间