You’re viewing outdated documentation. View the latest Graphics Mill documentation.

FileCache.GetPublicTempFileName Method (String, Boolean)

Applies to: Graphics Mill 5.5, 3.x-5.x (may differ) · Archived documentation

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

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

Syntax

Visual Basic
Public Function GetPublicTempFileName ( _
	extension As String, _
	isDirectory As Boolean _
) As String
C#
public string GetPublicTempFileName(
	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 specify whether to generate name for a file or folder.

Return Value

An unique name of the temporary file or folder in the public 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 public cache folder. You should create this file manually.

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

See Also

Reference