IContentType 接口

对象的内容类型。

命名空间:  Microsoft.VisualStudio.Utilities
程序集:  Microsoft.VisualStudio.CoreUtility(在 Microsoft.VisualStudio.CoreUtility.dll 中)

语法

声明
Public Interface IContentType
public interface IContentType
public interface class IContentType
type IContentType =  interface end
public interface IContentType

IContentType 类型公开以下成员。

属性

  名称 说明
公共属性 BaseTypes 获取当前 IContentType 派生的所有内容类型的集合。
公共属性 DisplayName 获取内容类型的显示名称。
公共属性 TypeName 获取内容类型的名称。

页首

方法

  名称 说明
公共方法 IsOfType 确定此内容类型是否具有指定的基内容类型。

页首

备注

所有内容类型由一个唯一名称标识。 IContentTypeRegistryService 可以返回 IContentType 对象允许客户端访问其他信息。

请参阅

参考

Microsoft.VisualStudio.Utilities 命名空间