ArchiveInstanceInfo.GetArchiveInstanceInfo
inhoud
[
verbergen
]GetArchiveInstanceInfo(string)
Haalt archiefinstantie-info op.
public static ArchiveInstanceInfo GetArchiveInstanceInfo(string fileName)
| Parameter | Type | Beschrijving |
|---|---|---|
| fileName | String | De bestandsnaam van het archiefbestand. |
Winstwaarde
Informatie over archiveringsinstantie of null als de indeling niet is gedetecteerd.
Uitzonderingen
| uitzondering | voorwaarde |
|---|---|
| ArgumentNullException | fileName is niets. |
| SecurityException | De beller heeft niet de vereiste toegangsrechten. |
| ArgumentException | DefileName is leeg, bevat alleen spaties of bevat ongeldige tekens. |
| UnauthorizedAccessException | Toegang tot dossierfileName wordt ontkend. |
| PathTooLongException | De opgegevenfileName de door het systeem gedefinieerde maximale lengte overschrijdt. Op Windows-gebaseerde platforms moeten paden bijvoorbeeld uit minder dan 248 tekens bestaan en moeten bestandsnamen uit minder dan 260 tekens bestaan. |
| NotSupportedException | Dossier bijfileName bevat een dubbele punt (:) in het midden van de tekenreeks. |
| IOException | Er is een I/O-fout opgetreden bij het openen van het bestand. |
Zie ook
- class ArchiveInstanceInfo
- naamruimte Aspose.Zip.ArchiveInfo
- montage Aspose.Zip
GetArchiveInstanceInfo(Stream)
Haalt archiefinstantie-info op.
public static ArchiveInstanceInfo GetArchiveInstanceInfo(Stream stream)
| Parameter | Type | Beschrijving |
|---|---|---|
| stream | Stream | De stroom van het archiefbestand. |
Winstwaarde
Informatie over archiveringsinstantie of null als de indeling niet is gedetecteerd.
Uitzonderingen
| uitzondering | voorwaarde |
|---|---|
| ArgumentNullException | stream is niets. |
| ArgumentException | stream is niet zoek. |
Zie ook
- class ArchiveInstanceInfo
- naamruimte Aspose.Zip.ArchiveInfo
- montage Aspose.Zip