Gemstone Common Library
Show/Hide TOC

# VolumeParse(String) Method

Converts the string representation of a number to its Volume equivalent.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.141 -- Release Build+8fc1477299d57116e2a4f3cb8dfe059f814b239b
C#
View Source Request Example

    public static Volume Parse(
    	string s
    )

VB
View Source Request Example

    Public Shared Function Parse (
    	s As String
    ) As Volume

C++
View Source Request Example

    public:
    static Volume Parse(
    	String^ s
    )

JavaScript
View Source Request Example

    Gemstone.Units.Volume.Parse = function(s);

#### Parameters

s String
  A string containing a number to convert.

#### Return Value

Volume
A Volume equivalent to the number contained in s.

## Exceptions

ArgumentNullException | s is null.
OverflowException | s represents a number less than MinValue or greater than MaxValue.
FormatException | s is not in the correct format.

## See Also

#### Reference

Volume Structure
Parse Overload
Gemstone.Units Namespace