共用方式為


IContentTypeRegistryService.GetContentType(String) Method

Definition

Gets the IContentType object with the specified typeName.

public:
 Microsoft::VisualStudio::Utilities::IContentType ^ GetContentType(System::String ^ typeName);
public:
 Microsoft::VisualStudio::Utilities::IContentType ^ GetContentType(Platform::String ^ typeName);
Microsoft::VisualStudio::Utilities::IContentType GetContentType(std::wstring const & typeName);
public Microsoft.VisualStudio.Utilities.IContentType GetContentType (string typeName);
abstract member GetContentType : string -> Microsoft.VisualStudio.Utilities.IContentType
Public Function GetContentType (typeName As String) As IContentType

Parameters

typeName
String

The name of the content type. Name comparisons are case-insensitive.

Returns

The content type, or null if no content type is found.

Applies to