IContentTypeRegistryService.RemoveContentType 方法

移除内容类型。

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

语法

声明
Sub RemoveContentType ( _
    typeName As String _
)
void RemoveContentType(
    string typeName
)
void RemoveContentType(
    String^ typeName
)
abstract RemoveContentType : 
        typeName:string -> unit
function RemoveContentType(
    typeName : String
)

参数

  • typeName
    类型:String

    要移除的内容类型。

异常

异常 条件
InvalidOperationException

无法撤消所指定的内容类型。

备注

不能撤消该 “未知”内容类型。 或,因为其他内容类型的基础不能移除,为映射的文件扩展使用的任何内容类型。

.NET Framework 安全性

请参阅

参考

IContentTypeRegistryService 接口

Microsoft.VisualStudio.Utilities 命名空间