移除内容类型。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。