ShellBrowser .Net Edition
GetFolderSize Method (p_Path)
NamespacesJam.ShellPathCollectionGetFolderSize(String)
Returns the size of a folder, including all files in all subfolders.
Declaration Syntax
C#Visual BasicVisual C++
public static long GetFolderSize(
	string p_Path
)
Public Shared Function GetFolderSize ( _
	p_Path As String _
) As Long
public:
static long long GetFolderSize(
	String^ p_Path
)
Parameters
p_Path (String)
The full path of the folder.
Return Value
The size of the given folder in Bytes.
Exceptions
ExceptionCondition
DirectoryNotFoundExceptionThe path is invalid, such as being on an unmapped drive.
ArgumentNullException p_Path is a null reference
SecurityExceptionThe caller does not have the required permission.
PathTooLongExceptionThe given path contains a subfolder that's fullpath has more than 260 characters.

Assembly: ShellBrowser (Module: ShellBrowser) Version: 4.2.1.45 (4.2.1.45)