IContentTypeRegistryService::RemoveContentType Method (String^)
Removes a content type.
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Parameters
- typeName
-
Type:
System::String^
The content type to be removed.
| Exception | Condition |
|---|---|
| InvalidOperationException | The specified content type cannot be removed. |
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.
Show: