ITempFilesNewTempDirectory Method
Creates a new empty temporary directory inside temp subdirectory of SettingsDirectory.
The temporary directory will be deleted when the object which owns ITempFiles (for example, ISessionProfile) is disposed.
The directory may also be deleted earlier by the caller code.
Directories which are created by
NewTempDirectory(Guid, String) are not remembered by
ITempFiles or its owner object,
i.e., a new directory is created on each call and the caller code is responsible for storing the returned directory path.
Namespace: SMath.ManagerAssembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
string NewTempDirectory(
Guid pluginId,
string topic = null
)
Function NewTempDirectory (
pluginId As Guid,
Optional topic As String = Nothing
) As String
String^ NewTempDirectory(
Guid pluginId,
String^ topic = nullptr
)
abstract NewTempDirectory :
pluginId : Guid *
?topic : string
(* Defaults:
let _topic = defaultArg topic null
*)
-> string
- pluginId Guid
- PublicGuid of the plug-in which requests a new temporary directory.
If it is requested outside of any plug-in, Empty must be specified.
- topic String (Optional)
-
Optional topic which is logged and can be used for identification of the temporary directories when troubleshooting is required.
For example: "Parsed Links", "Region Attachments", etc.
StringFull path to the created temporary directory, without the trailing
DirectorySeparatorChar.