SPUtility.GetMimeTypeFromExtension method
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetMimeTypeFromExtension ( _
extension As String _
) As String
'Usage
Dim extension As String
Dim returnValue As String
returnValue = SPUtility.GetMimeTypeFromExtension(extension)
public static string GetMimeTypeFromExtension(
string extension
)
Parameters
- extension
Type: System.String
Return value
Type: System.String