获取具有指定的类型名称的 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。