IContentTypeRegistryService.RemoveContentType Method

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.

ExceptionCondition
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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft