## DetectFileFormat(Stream) {#detectfileformat}

Upptäcker och returnerar information om ett Excel-format som lagras i en ström.

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

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| stream | Stream |  |

### Returvärde

A[`FileFormatInfo`](../../fileformatinfo) objekt som innehåller den upptäckta informationen.

### Se även

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* namnutrymme [Aspose.Cells](../../fileformatutil)
* hopsättning [Aspose.Cells](../../../)

---

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

Upptäcker och returnerar information om ett Excel-format som lagras i en ström.

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

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| stream | Stream |  |
| password | String | Lösenordet för krypterade ooxml-filer. |

### Returvärde

A[`FileFormatInfo`](../../fileformatinfo) objekt som innehåller den upptäckta informationen.

### Se även

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* namnutrymme [Aspose.Cells](../../fileformatutil)
* hopsättning [Aspose.Cells](../../../)

---

## DetectFileFormat(string) {#detectfileformat_2}

Upptäcker och returnerar information om ett Excel-format som lagras i en fil.

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

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| filePath | String | Filsökvägen. |

### Returvärde

A[`FileFormatInfo`](../../fileformatinfo) objekt som innehåller den upptäckta informationen.

### Se även

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* namnutrymme [Aspose.Cells](../../fileformatutil)
* hopsättning [Aspose.Cells](../../../)

---

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

Upptäcker och returnerar information om ett Excel-format som lagras i en fil.

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

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| filePath | String | Filsökvägen. |
| password | String | Lösenordet för krypterade ooxml-filer. |

### Returvärde

A[`FileFormatInfo`](../../fileformatinfo) objekt som innehåller den upptäckta informationen.

### Se även

* class [FileFormatInfo](../../fileformatinfo)
* class [FileFormatUtil](../../fileformatutil)
* namnutrymme [Aspose.Cells](../../fileformatutil)
* hopsättning [Aspose.Cells](../../../)

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