IContentTypeRegistryService.RemoveContentType Method

Removes a content type.

Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

Syntax

'Declaration
Sub RemoveContentType ( _
    typeName As String _
)
void RemoveContentType(
    string typeName
)
void RemoveContentType(
    String^ typeName
)
abstract RemoveContentType : 
        typeName:string -> unit 
function RemoveContentType(
    typeName : String
)

Parameters

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

See Also

Reference

IContentTypeRegistryService Interface

Microsoft.VisualStudio.Utilities Namespace