This documentation is for the old version. Go to the latest Graphics Mill docs

FileCache.GetPrivateTempFileName Method (String, Boolean)

Generates an unique temporary file or folder name for the private cache.

Namespace: Aurigma.GraphicsMill.AjaxControls
Assembly: Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)

Syntax

Visual Basic
Public Function GetPrivateTempFileName ( _
	extension As String, _
	isDirectory As Boolean _
) As String
C#
public string GetPrivateTempFileName(
	string extension,
	bool isDirectory
)

Parameters

extension

Type: System.String

An extension to append to the generated name.
isDirectory

Type: System.Boolean

A Boolean value which specifies whether to generate name for a file or folder.

Return Value

An unique name of the temporary file or folder in the private cache (without full path).

Remarks

Note, this method does not create a file or folder with generated name. It just returns a name which is guarantied unique in the private cache folder. You should create this file manually.

To get a full physical path to the private cache, use the GetAbsolutePrivateCachePath(String) method.

See Also

Reference