IContentTypeRegistryService.GetContentType(String) 方法

定义

获取具有指定的 typeNameIContentType 对象。

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

参数

typeName
String

内容类型的名称。 名称比较不区分大小写。

返回

IContentType

内容类型,如果未找到任何内容类型,则为 null。

适用于