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

FileCache.GetPublicTempFileName Method (String)

Generates an unique temporary file name for the public cache.

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


Visual Basic
Public Function GetPublicTempFileName ( _
	extension As String _
) As String
public string GetPublicTempFileName(
	string extension



Type: System.String

An extension to append to the generated file name.

Return Value

An unique name of the temporary file in the public cache (without full path).


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

To get a full physical path to the public cache, use the GetAbsolutePublicCachePath(String) method. If you need to get an URL to this file (so that this file could be loaded into the browser), use the GetRelativePublicCachePath(String) method.

See Also