FileGetSize Method (String, PathFormat) |
[AlphaFS] Retrieves the file size, in bytes to store a specified file.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static long GetSize(
string path,
PathFormat pathFormat
)
Public Shared Function GetSize (
path As String,
pathFormat As PathFormat
) As Long
public:
static long long GetSize(
String^ path,
PathFormat pathFormat
)
static member GetSize :
path : string *
pathFormat : PathFormat -> int64
Parameters
- path
- Type: SystemString
The path to the file. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
Int64The file size, in bytes.
See Also