Class SgaFolder
- Namespace
- OpenCompote.SGA
- Assembly
- OpenCompote.dll
Represents a folder within a SGA archive.
public class SgaFolder : SgaEntry
- Inheritance
-
SgaFolder
- Inherited Members
Properties
Contents
Gets the collection of entries that are currently in the current folder.
public ReadOnlyCollection<SgaEntry> Contents { get; }
Property Value
Methods
AddFile(string, StorageType)
Created an empty SgaFile in the current folder.
public SgaFile AddFile(string name, StorageType type)
Parameters
namestringThe name of the new file.
typeStorageTypeThe storage type of the new file.
Returns
- SgaFile
New empty file.
Exceptions
- InvalidOperationException
The SGA archive for this folder was open in readonly mode.
- ObjectDisposedException
The SGA archive for this folder has been disposed, or this folder is deleted.
AddFolder(string)
Creates an empty SgaFolder with name in the current folder.
public SgaFolder AddFolder(string name)
Parameters
namestringThe name of the folder to be created
Returns
- SgaFolder
New empty subfolder.
Exceptions
- InvalidOperationException
The SGA archive for this folder was open in readonly mode.
- ObjectDisposedException
The SGA archive for this folder has been disposed, or the folder is deleted.