
## DetectFileFormat (1 of 2) {#detectfileformat_1}

Detects and returns the information about a format of a file stored in a stream.

**Returns:** The result FileFormatInfo

```cpp
DetectFileFormat(System::SharedPtr < System::IO::Stream > stream)
```

| Parameter | Description |
| --- | --- |
| stream | Source stream. |

---

## DetectFileFormat (2 of 2) {#detectfileformat_2}

Detects and returns the information about a format of a file.

**Returns:** The result FileFormatInfo

```cpp
DetectFileFormat(System::String filePath)
```

| Parameter | Description |
| --- | --- |
| filePath | Path to the source file. |

