共用方式為


IContentTypeRegistryService.ContentTypes Property

Gets an enumeration of all content types, including the "unknown" content type.

Namespace:  Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

Syntax

'宣告
ReadOnly Property ContentTypes As IEnumerable(Of IContentType)
IEnumerable<IContentType> ContentTypes { get; }
property IEnumerable<IContentType^>^ ContentTypes {
    IEnumerable<IContentType^>^ get ();
}
abstract ContentTypes : IEnumerable<IContentType>
function get ContentTypes () : IEnumerable<IContentType>

Property Value

Type: System.Collections.Generic.IEnumerable<IContentType>
The content types.

.NET Framework Security

See Also

Reference

IContentTypeRegistryService Interface

Microsoft.VisualStudio.Utilities Namespace