---
title: "FileCache..::.GetPublicTempFileName Method (String, Boolean)"
canonical: https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_FileCache_GetPublicTempFileName_2_7ffb34cc.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**You’re viewing documentation for an outdated product.** Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see [Design Atoms .NET](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/design-editor/).

# FileCache.GetPublicTempFileName Method (String, Boolean)

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
Generates an unique temporary file or folder name for the public cache.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls](https://www.graphicsmill.com/docs/gmwc/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```csharp
public string GetPublicTempFileName(string extension,bool isDirectory
)
```
 
### Parameters
 
 - extension
     - Type: [System..String](http://msdn2.microsoft.com/en-us/library/s1wwdcbf)
An extension to append to the generated name.

 - isDirectory
     - Type: [System..Boolean](http://msdn2.microsoft.com/en-us/library/a28wyd50)
A [Boolean](http://msdn2.microsoft.com/en-us/library/a28wyd50) 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 public cache (without full path).
 
### Implements
 
[IFileCache..GetPublicTempFileName(String, Boolean)](https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_IFileCache_GetPublicTempFileName_2_7ffb34cc.htm.md)
 
## 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)](https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_FileCache_GetAbsolutePublicCachePath_1_bb3a7a4f.htm.md) method.
   
## See Also

### Reference

- [FileCache Class](https://www.graphicsmill.com/docs/gmwc/T_Aurigma_GraphicsMill_AjaxControls_FileCache.htm.md)
- [GetPublicTempFileName Overload](https://www.graphicsmill.com/docs/gmwc/O_T_Aurigma_GraphicsMill_AjaxControls_FileCache_GetPublicTempFileName.htm.md)
- [Aurigma.GraphicsMill.AjaxControls Namespace](https://www.graphicsmill.com/docs/gmwc/N_Aurigma_GraphicsMill_AjaxControls.htm.md)
