IContentTypeRegistryService Interface

The service that maintains the collection of content types.

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

type IContentTypeRegistryService =  interface end

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