IContentTypeRegistryService.RemoveContentType Method
Removes a content type.
Namespace: Microsoft.VisualStudio.Utilities
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Syntax
'Declaração
Sub RemoveContentType ( _
typeName As String _
)
void RemoveContentType(
string typeName
)
void RemoveContentType(
String^ typeName
)
abstract RemoveContentType :
typeName:string -> unit
function RemoveContentType(
typeName : String
)
Parameters
- typeName
Type: System.String
The content type to be removed.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The specified content type cannot be removed. |
Remarks
The "unknown" content type cannot be removed. Any content type that is used for file extension mapping or as a base for other content types cannot be removed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.