AppleArchive.CreateEntry
Contents
[
Hide
]CreateEntry(string, string, bool)
Creates a single entry within the archive.
public AppleArchiveEntry CreateEntry(string name, string path, bool openImmediately = false)
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the entry. |
| path | String | The path to the file to compress. |
| openImmediately | Boolean | True, if open the file immediately, otherwise open the file on archive saving. |
Return Value
Apple Archive entry instance.
Exceptions
| exception | condition |
|---|---|
| ObjectDisposedException | The archive has been disposed. |
| ArgumentException | name is empty. |
| ArgumentNullException | path is null. |
See Also
- class AppleArchiveEntry
- class AppleArchive
- namespace Aspose.Zip.Apple
- assembly Aspose.Zip
CreateEntry(string, Stream)
Creates a single entry within the archive.
public AppleArchiveEntry CreateEntry(string name, Stream source)
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the entry. |
| source | Stream | The input stream for the entry. |
Return Value
Apple Archive entry instance.
Exceptions
| exception | condition |
|---|---|
| ObjectDisposedException | The archive has been disposed. |
| ArgumentException | name is empty. |
| ArgumentNullException | source is null. |
See Also
- class AppleArchiveEntry
- class AppleArchive
- namespace Aspose.Zip.Apple
- assembly Aspose.Zip
CreateEntry(string, FileInfo, bool)
Creates a single entry within the archive.
public AppleArchiveEntry CreateEntry(string name, FileInfo fileInfo, bool openImmediately = false)
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of the entry. |
| fileInfo | FileInfo | The metadata of file to be compressed. |
| openImmediately | Boolean | True, if open the file immediately, otherwise open the file on archive saving. |
Return Value
Apple Archive entry instance.
Exceptions
| exception | condition |
|---|---|
| ObjectDisposedException | The archive has been disposed. |
| ArgumentException | name is empty. |
| ArgumentNullException | fileInfo is null. |
See Also
- class AppleArchiveEntry
- class AppleArchive
- namespace Aspose.Zip.Apple
- assembly Aspose.Zip