Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IContentTypeRegistryService Interface

The service that maintains the collection of content types.

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

public interface class IContentTypeRegistryService

The IContentTypeRegistryService type exposes the following members.

  NameDescription
Public propertyContentTypesGets an enumeration of all content types, including the "unknown" content type.
Public propertyUnknownContentTypeGets the "unknown" content type.
Top

  NameDescription
Public methodAddContentTypeCreates and adds a new content type.
Public methodGetContentTypeGets the IContentType object with the specified type name.
Public methodRemoveContentTypeRemoves a content type.
Top

This is a MEF component part, and should be imported as follows:

[Import]
Internal IContentTypeRegistryService registryservice = null;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft