| TempFileUtilsGetModifiedTempFilePath Method |
Construct a temp file name based on an original file name (which may include a path).
This can optionally be done using a list of file extension mappings given in extensionMaps parameter.
Namespace: Sdl.FileTypeSupport.Framework.PreviewControlsAssembly: Sdl.FileTypeSupport.Framework.PreviewControls (in Sdl.FileTypeSupport.Framework.PreviewControls.dll) Version: 1.0.0.0 (1.0.7219.0)
Syntaxpublic static string GetModifiedTempFilePath(
string[] extensionMaps,
string originalFilePath
)
Public Shared Function GetModifiedTempFilePath (
extensionMaps As String(),
originalFilePath As String
) As String
public:
static String^ GetModifiedTempFilePath(
array<String^>^ extensionMaps,
String^ originalFilePath
)
static member GetModifiedTempFilePath :
extensionMaps : string[] *
originalFilePath : string -> string
Parameters
- extensionMaps
- Type: SystemString
A list of file extension maps that can be used to map the original filename extension to a new file extension
that can be used for previews.
Each string in the extensionMaps array can either be in two formats. This first is
the original file extension followed by '|' and then the new file extension that will be used for a preview. This will
generate preview files using the second extension for all previews of file with the original file that matches first extension. E.g.
Will preview all .txt files by generating the a temp file using the .htm extension.
The second format that can be used for a string in the extensionMaps array is simply the file extension to be used for
the preview and all original file extensions will be previewed using this preview file extension. E.g.
- originalFilePath
- Type: SystemString
The original file path of the file being previewed.
Return Value
Type:
String
A tempoary file name that can be used to generate a preview.
See Also
Comments