IContentTypeRegistryService.GetContentType(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.