ComHelper.OpenRar
Contents
[
Hide
]OpenRar(Stream)
Allows a COM application to load a rar archive from a stream.
public RarArchive OpenRar(Stream stream)
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | A .NET stream object that contains the archive to load. |
Return Value
A RarArchive object that represents the archive.
Exceptions
| exception | condition |
|---|---|
| InvalidDataException | Thrown when the data is invalid or corrupted. |
See Also
- class RarArchive
- class ComHelper
- namespace Aspose.Zip
- assembly Aspose.Zip
OpenRar(string)
Allows a COM application to load a rar archive from a file.
public RarArchive OpenRar(string fileName)
| Parameter | Type | Description |
|---|---|---|
| fileName | String | Filename of the archive to load. |
Return Value
A RarArchive object that represents the archive.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | The file name is empty, contains only white spaces, or contains invalid characters. |
| ArgumentNullException | fileName is null. |
| Exception | Thrown when a runtime error occurs. |
| DirectoryNotFoundException | The specified path is invalid, such as being on an unmapped drive. |
| FileNotFoundException | The file is not found. |
| InvalidDataException | Thrown when the data is invalid or corrupted. |
| PathTooLongException | The specified path, file name, or both exceed the system-defined maximum length. |
| UnauthorizedAccessException | Access to fileName is denied. |
See Also
- class RarArchive
- class ComHelper
- namespace Aspose.Zip
- assembly Aspose.Zip