## DetectFileFormat(Stream) {#detectfileformat}

Erkennt und gibt die Informationen über ein Excel-Format zurück, das in einem Stream gespeichert ist.

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

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| stream | Stream |  |

### Rückgabewert

EIN[`FileFormatInfo`](../../fileformatinfo) Objekt, das die erkannten Informationen enthält.

### Siehe auch

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* namensraum [Aspose.Cells](../../fileformatutil)
* Montage [Aspose.Cells](../../../)

---

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

Erkennt und gibt die Informationen über ein Excel-Format zurück, das in einem Stream gespeichert ist.

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

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| stream | Stream |  |
| password | String | Das Passwort für verschlüsselte Ooxml-Dateien. |

### Rückgabewert

EIN[`FileFormatInfo`](../../fileformatinfo) Objekt, das die erkannten Informationen enthält.

### Siehe auch

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* namensraum [Aspose.Cells](../../fileformatutil)
* Montage [Aspose.Cells](../../../)

---

## DetectFileFormat(string) {#detectfileformat_2}

Erkennt und gibt die Informationen über ein Excel-Format zurück, das in einer Datei gespeichert ist.

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

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| filePath | String | Der Dateipfad. |

### Rückgabewert

EIN[`FileFormatInfo`](../../fileformatinfo) Objekt, das die erkannten Informationen enthält.

### Siehe auch

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* namensraum [Aspose.Cells](../../fileformatutil)
* Montage [Aspose.Cells](../../../)

---

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

Erkennt und gibt die Informationen über ein Excel-Format zurück, das in einer Datei gespeichert ist.

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

| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| filePath | String | Der Dateipfad. |
| password | String | Das Passwort für verschlüsselte Ooxml-Dateien. |

### Rückgabewert

EIN[`FileFormatInfo`](../../fileformatinfo) Objekt, das die erkannten Informationen enthält.

### Siehe auch

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* namensraum [Aspose.Cells](../../fileformatutil)
* Montage [Aspose.Cells](../../../)

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