---
title: "FormatReader..::.CheckForSupport Method (Stream)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_FormatReader_CheckForSupport_1_bca7c9fe.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 (Stream)
 
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 ( _stream As Stream _
) As Boolean
```
 
```csharp
public virtual bool CheckForSupport(Stream stream
)
```
 
### Parameters
 
 - stream
     - Type: [System.IO.Stream](http://msdn2.microsoft.com/en-us/8f86tw9e)
The stream that contains the file to test.
 
### Return Value
If image can be read with this reader, returns **true**, otherwise returns **false**.
 
### Implements
 
[IFormatReader.CheckForSupport(Stream)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_IFormatReader_CheckForSupport_1_bca7c9fe.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)
