Udostępnij za pośrednictwem


IContentTypeRegistryService.RemoveContentType(String) Method

Definition

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.

Applies to