Condividi tramite


IContentTypeRegistryService Interface

The service that maintains the collection of content types.

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

Syntax

'Dichiarazione
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
Public property ContentTypes Gets an enumeration of all content types, including the "unknown" content type.
Public property UnknownContentType Gets the "unknown" content type.

Top

Methods

  Name Description
Public method AddContentType Creates and adds a new content type.
Public method GetContentType Gets the IContentType object with the specified type name.
Public method RemoveContentType Removes a content type.

Top

Remarks

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

[Import]
Internal IContentTypeRegistryService registryservice = null;

See Also

Reference

Microsoft.VisualStudio.Utilities Namespace