The service that maintains the collection of content types.
Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Syntax
声明
Public Interface IContentTypeRegistryService
public interface IContentTypeRegistryService
public interface class IContentTypeRegistryService
type IContentTypeRegistryService =  interface end
public interface IContentTypeRegistryService
The IContentTypeRegistryService type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | ContentTypes | Gets an enumeration of all content types, including the "unknown" content type. | 
| .gif) | UnknownContentType | Gets the "unknown" content type. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddContentType | Creates and adds a new content type. | 
| .gif) | GetContentType | Gets the IContentType object with the specified type name. | 
| .gif) | RemoveContentType | Removes a content type. | 
Top
Remarks
This is a MEF component part, and should be imported as follows:
[Import]
Internal IContentTypeRegistryService registryservice = null;