---
title: "FormatReader..::.CheckForSupport Method (String)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_FormatReader_CheckForSupport_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/)

# FormatReader.CheckForSupport Method (String)
 
Checks if the image can be loaded with this reader.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable Function CheckForSupport ( _fileName As String _
) As Boolean
```
 
```csharp
public virtual bool CheckForSupport(string fileName
)
```
 
### Parameters
 
 - fileName
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
The name of the file to test.
 
### Return Value
If image can be read with this reader, returns **true**, otherwise returns **false**.
 
### Implements
 
[IFormatReader.CheckForSupport(String)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IFormatReader_CheckForSupport_1_bb3a7a4f.htm.md)
 
## Remarks
  
You can use this method to ensure if the file has necessary format. For example, to check if the image is a GIF file, you should create an instance of [GifReader](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_GifReader.htm.md) class and call this method. It will return **true** for all GIF files and **false** for other formats.
   
## See Also

### Reference

- [FormatReader Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_FormatReader.htm.md)
- [CheckForSupport Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_FormatReader_CheckForSupport.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
