/// <summary> /// Gets the content type associated with this type of physical files. /// </summary> public async Task <IContentType> GetContentTypeAsync() { IFileToContentTypeService fileToContentTypeService = await VS.GetMefServiceAsync <IFileToContentTypeService>(); return(fileToContentTypeService.GetContentTypeForFileNameOrExtension(Text)); }