JAMS Developer Guide
GetValueOrDefault(String,TimeOfDay) Method


MVPSI.JAMS Namespace > PropertyValueCollection Class > GetValueOrDefault Method : GetValueOrDefault(String,TimeOfDay) Method
The name of the property
The value to return if the property name is not found
Gets the value of a property if that property is defined. If it is not defined, returns the specified default value.
Syntax
'Declaration
 
Public Overloads Function GetValueOrDefault( _
   ByVal propertyName As System.String, _
   ByVal defaultValue As TimeOfDay _
) As TimeOfDay
'Usage
 
Dim instance As PropertyValueCollection
Dim propertyName As System.String
Dim defaultValue As TimeOfDay
Dim value As TimeOfDay
 
value = instance.GetValueOrDefault(propertyName, defaultValue)
public TimeOfDay GetValueOrDefault( 
   System.string propertyName,
   TimeOfDay defaultValue
)

Parameters

propertyName
The name of the property
defaultValue
The value to return if the property name is not found
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

Reference

PropertyValueCollection Class
PropertyValueCollection Members
Overload List