Click or drag to resize
DatabaseUtilsGetUsedVaultCapacity Method (IDatabaseRepository, IFolder, Boolean)
Calculates the vault capacity used by the Core.File objects in the folder tree.

Namespace: PDTec.IceNet.Sdk.Utils
Assembly: PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntax
C#
public static long GetUsedVaultCapacity(
	IDatabaseRepository pRepository,
	IFolder pFolder,
	bool isRecursive
)

Parameters

pRepository
Type: PDTec.IceNet.Core.DatabaseIDatabaseRepository
The repository.
pFolder
Type: PDTec.IceNet.Core.ModelIFolder
The root folder.
isRecursive
Type: SystemBoolean
Indicates if the child folders should be searched recursively.

Return Value

Type: Int64
The vault capacity used in bytes.
Remarks
Legacy file content (pre-ice.NET 3.4) does not have size information stored in the database. This content is counted as 0 bytes.
See Also