ImageMan.Net Version 3 Summer 2012 Release
TryParse Method
See Also  Send Feedback
DTI.ImageMan.Metadata.Exif Namespace > MathEx.UFraction32 Structure : TryParse Method





s
A string formatted as numerator/denominator
f

Glossary Item Box

Converts the string representation of a fraction to a fraction object. A return value indicates whether the conversion succeeded.

Syntax

Visual Basic (Declaration) 
Public Shared Function TryParse( _
   ByVal s As System.String, _
   ByRef f As MathEx.UFraction32 _
) As System.Boolean
Visual Basic (Usage)Copy Code
Dim s As System.String
Dim f As MathEx.UFraction32
Dim value As System.Boolean
 
value = MathEx.UFraction32.TryParse(s, f)
C# 
public static System.bool TryParse( 
   System.string s,
   out MathEx.UFraction32 f
)
JScript 
public static function TryParse( 
   s : System.String,
   f : MathEx.UFraction32
) : System.boolean;
Managed Extensions for C++ 
public: static System.bool TryParse( 
   System.string* s,
   [PARAMFLAG::Out] MathEx.UFraction32 f
) 
C++/CLI 
public:
static System.bool TryParse( 
   System.String^ s,
   [Out] MathEx.UFraction32 f
) 

Parameters

s
A string formatted as numerator/denominator
f

Return Value

true if s was converted successfully; otherwise, false.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.