Table of Contents

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

ReadOnlyCollection<SgaEntry>

Methods

AddFile(string, StorageType)

Created an empty SgaFile in the current folder.

public SgaFile AddFile(string name, StorageType type)

Parameters

name string

The name of the new file.

type StorageType

The 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

name string

The 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.