---
title: "FileCache..::.GetPrivateTempFileName Method (String)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WebControls_FileCache_GetPrivateTempFileName_1_bb3a7a4f.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# FileCache.GetPrivateTempFileName Method (String)
 
Generates an unique temporary file name for the private cache.
 
**Namespace:** [Aurigma.GraphicsMill.WebControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WebControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WebControls (in Aurigma.GraphicsMill.WebControls.dll)
 
## Syntax
  
```
Public Function GetPrivateTempFileName ( _extension As String _
) As String
```
 
```csharp
public string GetPrivateTempFileName(string extension
)
```
 
### Parameters
 
 - extension
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
An extension to append to the generated file name.
 
### Return Value
An unique name of the temporary file in the private cache (without full path).
 
## Remarks
  
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 private cache folder. You should create this file manually.
 
To get a full physical path to the private cache, use the [GetAbsolutePrivateCachePath(String)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WebControls_FileCache_GetAbsolutePrivateCachePath_1_bb3a7a4f.htm.md) method.
   
## See Also

### Reference

- [FileCache Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WebControls_FileCache.htm.md)
- [GetPrivateTempFileName Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WebControls_FileCache_GetPrivateTempFileName.htm.md)
- [Aurigma.GraphicsMill.WebControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WebControls.htm.md)
