IContentTypeRegistryService2 接口

定义

public interface class IContentTypeRegistryService2 : Microsoft::VisualStudio::Utilities::IContentTypeRegistryService
public interface IContentTypeRegistryService2 : Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
type IContentTypeRegistryService2 = interface
    interface IContentTypeRegistryService
Public Interface IContentTypeRegistryService2
Implements IContentTypeRegistryService
实现

属性

ContentTypes

获取所有内容类型的枚举,包括 "unknown" 内容类型。

(继承自 IContentTypeRegistryService)
UnknownContentType

获取 "unknown" 内容类型。

(继承自 IContentTypeRegistryService)

方法

AddContentType(String, IEnumerable<String>)

创建并添加新的内容类型。

(继承自 IContentTypeRegistryService)
GetContentType(String)

获取具有指定的 typeNameIContentType 对象。

(继承自 IContentTypeRegistryService)
GetContentTypeForMimeType(String)

获取与 mime 类型关联的内容类型。

GetMimeType(IContentType)

获取与内容类型关联的 mime 类型。

RemoveContentType(String)

删除内容类型。

(继承自 IContentTypeRegistryService)

适用于