VistaDB 5






GetValueOrDefault(TimeSpan) Method
Overloaded. Returns the Value of the object, or a the passed in defaultValue.
Syntax
'Declaration
 
Public Overloads Function GetValueOrDefault( _
   ByVal defaultValue As System.TimeSpan _
) As System.TimeSpan
'Usage
 
Dim instance As VistaDBTime
Dim defaultValue As System.TimeSpan
Dim value As System.TimeSpan
 
value = instance.GetValueOrDefault(defaultValue)
public System.TimeSpan GetValueOrDefault( 
   System.TimeSpan defaultValue
)
public function GetValueOrDefault( 
    defaultValue: System.TimeSpan
): System.TimeSpan; 
public function GetValueOrDefault( 
   defaultValue : System.TimeSpan
) : System.TimeSpan;
public: System.TimeSpan GetValueOrDefault( 
   System.TimeSpan defaultValue
) 
public:
System.TimeSpan GetValueOrDefault( 
   System.TimeSpan defaultValue
) 

Parameters

defaultValue

Return Value

Current Value or passed in defaultValue.
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