BytesExtensionsFormatBytes Method |
IT Hit User File System
Formats bytes to string.
Namespace:
ITHit.FileSystem.Extensions
Assembly:
ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 9.0.29527.0
Syntaxpublic static string FormatBytes(
this long length
)
<ExtensionAttribute>
Public Shared Function FormatBytes (
length As Long
) As String
public:
[ExtensionAttribute]
static String^ FormatBytes(
long long length
)
[<ExtensionAttribute>]
static member FormatBytes :
length : int64 -> string
Parameters
- length
- Type: SystemInt64
Bytes to format.
Return Value
Type:
StringHuman readable bytes string.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int64. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also