IContentTypeRegistryService.RemoveContentType Method (String)

 

Removes a content type.

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

void RemoveContentType(
	string typeName
)

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.

Return to top
Show: