IContentTypeRegistryService.RemoveContentType(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes a content type.
public:
void RemoveContentType(System::String ^ typeName);
public:
void RemoveContentType(Platform::String ^ typeName);
void RemoveContentType(std::wstring const & typeName);
public void RemoveContentType (string typeName);
abstract member RemoveContentType : string -> unit
Public Sub RemoveContentType (typeName As String)
Parameters
- typeName
- String
The content type to be removed.
Exceptions
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.