Share via


ByteQuantifiedSize.Parse method (String, ByteQuantifiedSize.Quantifier)

Converts the string representation of a byte-qualified value to its numeric equivalent in the specified units.

Namespace:  Microsoft.Exchange.Data
Assembly:  Microsoft.Exchange.Data (in Microsoft.Exchange.Data.dll)

Syntax

'Declaration
Public Shared Function Parse ( _
    expression As String, _
    defaultUnit As ByteQuantifiedSize.Quantifier _
) As ByteQuantifiedSize
'Usage
Dim expression As String
Dim defaultUnit As ByteQuantifiedSize.Quantifier
Dim returnValue As ByteQuantifiedSize

returnValue = ByteQuantifiedSize.Parse(expression, _
    defaultUnit)
public static ByteQuantifiedSize Parse(
    string expression,
    ByteQuantifiedSize.Quantifier defaultUnit
)

Parameters

  • expression
    Type: System.String

    A string containing a number to convert.

Return value

Type: Microsoft.Exchange.Data.ByteQuantifiedSize
A byte-qualified equivalent to the number contained in the expression parameter.

See also

Reference

ByteQuantifiedSize structure

ByteQuantifiedSize members

Parse overload

Microsoft.Exchange.Data namespace