Vb.net get file content type
Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Content Type Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System. Mime Assembly: System. In this article. ContentType String. With the Path. GetExtension Function we acquire the extension. We then make decisions based on its value.
This method has some interesting behavior. In this example, you can see that the string literal contains a Windows file system path. Next, the extension is extracted by invoking the Path. GetExtension method. GetValue "". ToString If defaultValue. Thanks for the aritcle. Thread Closed. Facebook Like. Twitter Tweet. Be a part of the DaniWeb community. Sign Up — It's Free! Reply to this Topic. This question has already been solved!
The person who asked this question has marked it as solved. Solved questions live forever in our knowledge base where they go on to help others facing the same issues for years to come. Are you sure you have something valuable to add that has not already been mentioned?
Consider starting a new topic instead. Otherwise, please be thoughtful, detailed and courteous, and adhere to our posting rules. Edit Preview.
0コメント