PathCollectionGetFolderSize Method (String, Int32, Int32) |
Returns the size of a folder, including all files in all subfolders, and the file count.
path must include a trailing backslash
Namespace:
Jam.Shell
Assembly:
ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.3.1
Syntax public static long GetFolderSize(
string p_Path,
out int p_FileCount,
out int p_FolderCount
)
Public Shared Function GetFolderSize (
p_Path As String,
<OutAttribute> ByRef p_FileCount As Integer,
<OutAttribute> ByRef p_FolderCount As Integer
) As Long
public:
static long long GetFolderSize(
String^ p_Path,
[OutAttribute] int% p_FileCount,
[OutAttribute] int% p_FolderCount
)
static member GetFolderSize :
p_Path : string *
p_FileCount : int byref *
p_FolderCount : int byref -> int64
Parameters
- p_Path
- Type: SystemString
The full path of the folder. - p_FileCount
- Type: SystemInt32
A variable in that the number of files will be returned. - p_FolderCount
- Type: SystemInt32
A variable in that the number of subfolders will be returned.
Return Value
Type:
Int64The size of the given folder in Bytes.
Return Value
Type:
Int64The size of a folder, including all files in all subfolders, and the file count.
Exceptions See Also