IContentTypeRegistryService 介面
維護內容類型之集合的服務。
命名空間: Microsoft.VisualStudio.Utilities
組件: Microsoft.VisualStudio.CoreUtility (在 Microsoft.VisualStudio.CoreUtility.dll 中)
'宣告
Public Interface IContentTypeRegistryService
public interface IContentTypeRegistryService
public interface class IContentTypeRegistryService
type IContentTypeRegistryService = interface end
public interface IContentTypeRegistryService
IContentTypeRegistryService 類型會公開下列成員。
名稱 | 描述 | |
---|---|---|
![]() |
ContentTypes | 取得所有內容類型的列舉,包括 "unknown" 內容類型。 |
![]() |
UnknownContentType | 取得 "unknown" 內容類型。 |
回頁首
名稱 | 描述 | |
---|---|---|
![]() |
AddContentType | 建立新的內容類型,並予以加入。 |
![]() |
GetContentType | 取得IContentType物件指定的型別名稱。 |
![]() |
RemoveContentType | 移除內容類型。 |
回頁首
這是 MEF 元件的組件,並應該匯入,如下所示:
[Import]
Internal IContentTypeRegistryService registryservice = null;