다음을 통해 공유


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 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성 ContentTypes "알 수 없음" 콘텐츠 형식을 포함하여 모든 콘텐츠 형식의 열거형을 가져옵니다.
Public 속성 UnknownContentType "알 수 없음" 콘텐츠 형식을 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 AddContentType 새 콘텐츠 형식을 만들고 추가합니다.
Public 메서드 GetContentType 가져옵니다는 IContentType 개체를 지정 된 형식 이름입니다.
Public 메서드 RemoveContentType 콘텐츠 형식을 제거합니다.

위쪽

설명

MEF 컴포넌트 부품입니다 하 고 같이 가져와야 합니다.

[Import]
Internal IContentTypeRegistryService registryservice = null;

참고 항목

참조

Microsoft.VisualStudio.Utilities 네임스페이스