IContentTypeRegistryService Interface
TOC
Collapse the table of content
Expand the table of content

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 IContentTypeRegistryService

NameDescription
System_CAPS_pubpropertyContentTypes

Gets an enumeration of all content types, including the "unknown" content type.

System_CAPS_pubpropertyUnknownContentType

Gets the "unknown" content type.

NameDescription
System_CAPS_pubmethodAddContentType(String, IEnumerable<String>)

Creates and adds a new content type.

System_CAPS_pubmethodGetContentType(String)

Gets the IContentType object with the specified type name.

System_CAPS_pubmethodRemoveContentType(String)

Removes a content type.

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

[Import]
Internal IContentTypeRegistryService registryservice = null;
Return to top
Show:
© 2016 Microsoft