## DetectFileFormat(Stream) {#detectfileformat}

Détecte et renvoie les informations sur un format d'un fichier Excel stocké dans un flux.

```csharp
public static FileFormatInfo DetectFileFormat(Stream stream)
```

| Paramètre | Taper | La description |
| --- | --- | --- |
| stream | Stream |  |

### Return_Value

UN[`FileFormatInfo`](../../fileformatinfo) objet contenant les informations détectées.

### Voir également

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* espace de noms [Aspose.Cells](../../fileformatutil)
* Assemblée [Aspose.Cells](../../../)

---

## DetectFileFormat(Stream, string) {#detectfileformat_1}

Détecte et renvoie les informations sur un format d'un fichier Excel stocké dans un flux.

```csharp
public static FileFormatInfo DetectFileFormat(Stream stream, string password)
```

| Paramètre | Taper | La description |
| --- | --- | --- |
| stream | Stream |  |
| password | String | Le mot de passe pour les fichiers ooxml chiffrés. |

### Return_Value

UN[`FileFormatInfo`](../../fileformatinfo) objet contenant les informations détectées.

### Voir également

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* espace de noms [Aspose.Cells](../../fileformatutil)
* Assemblée [Aspose.Cells](../../../)

---

## DetectFileFormat(string) {#detectfileformat_2}

Détecte et renvoie les informations sur un format d'un fichier Excel stocké dans un fichier.

```csharp
public static FileFormatInfo DetectFileFormat(string filePath)
```

| Paramètre | Taper | La description |
| --- | --- | --- |
| filePath | String | Le chemin du fichier. |

### Return_Value

UN[`FileFormatInfo`](../../fileformatinfo) objet contenant les informations détectées.

### Voir également

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* espace de noms [Aspose.Cells](../../fileformatutil)
* Assemblée [Aspose.Cells](../../../)

---

## DetectFileFormat(string, string) {#detectfileformat_3}

Détecte et renvoie les informations sur un format d'un fichier Excel stocké dans un fichier.

```csharp
public static FileFormatInfo DetectFileFormat(string filePath, string password)
```

| Paramètre | Taper | La description |
| --- | --- | --- |
| filePath | String | Le chemin du fichier. |
| password | String | Le mot de passe pour les fichiers ooxml chiffrés. |

### Return_Value

UN[`FileFormatInfo`](../../fileformatinfo) objet contenant les informations détectées.

### Voir également

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* espace de noms [Aspose.Cells](../../fileformatutil)
* Assemblée [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
