PowerTCP Mail for .NET
GetMediaTypeFromExtension Method




A file name or path.
Parses the extension from the provided path and uses it to return a string suitable for use as ContentType.MediaType.
Syntax
Public Function GetMediaTypeFromExtension( _
   ByVal path As String _
) As String
Dim instance As Resource
Dim path As String
Dim value As String
 
value = instance.GetMediaTypeFromExtension(path)
public string GetMediaTypeFromExtension( 
   string path
)
public: string* GetMediaTypeFromExtension( 
   string* path
) 
public:
String^ GetMediaTypeFromExtension( 
   String^ path
) 

Parameters

path
A file name or path.

Return Value

A string suitable for use as ContentType.MediaType.
See Also

Reference

Resource Class
Resource Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic