IContentTypeRegistryService2 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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) |
获取具有指定的 |
| GetContentTypeForMimeType(String) |
获取与 mime 类型关联的内容类型。 |
| GetMimeType(IContentType) |
获取与内容类型关联的 mime 类型。 |
| RemoveContentType(String) |
删除内容类型。 (继承自 IContentTypeRegistryService) |