IFileToContentTypeService.GetContentTypeForFileName(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 content type associated with the given file name.
public:
Microsoft::VisualStudio::Utilities::IContentType ^ GetContentTypeForFileName(System::String ^ name);
public Microsoft.VisualStudio.Utilities.IContentType GetContentTypeForFileName (string name);
abstract member GetContentTypeForFileName : string -> Microsoft.VisualStudio.Utilities.IContentType
Public Function GetContentTypeForFileName (name As String) As IContentType
Parameters
- name
- String
The file name. It cannot be null.
Returns
The IContentType associated with this name. If no association exists, it returns the "unknown" content type. It never returns null.