IContentTypeRegistryService.GetContentType(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取具有指定的 typeName 的 IContentType 对象。
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
内容类型的名称。 名称比较不区分大小写。
返回
内容类型,如果未找到任何内容类型,则为 null。