|
StringExtensionsFromReadableLength Method |
Converts from Human-Readable Length to Bytes count
Namespace: DrawerBackup.Native.ExtensionsAssembly: DrawerBackup.Native (in DrawerBackup.Native.dll) Version: 0.0.1.1 (0.0.1.1)
Syntaxpublic static long FromReadableLength(
this string data
)
<ExtensionAttribute>
Public Shared Function FromReadableLength (
data As String
) As Long
public:
[ExtensionAttribute]
static long long FromReadableLength(
String^ data
)
[<ExtensionAttribute>]
static member FromReadableLength :
data : string -> int64
Parameters
- data
- Type: SystemString
Can be:
1024B = 1024 Bytes
1MB = 1 Megabytes
1024KB = 1024 KBytes
1TB = 1 Terabytes
1GB = 1 Gigabytes
Return Value
Type:
Int64Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. 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