JAMS Developer Guide
GetValueOrDefault<T>(String,T) Method


MVPSI.JAMS.Host Namespace > PropertyValueCollection Class : GetValueOrDefault<T>(String,T) Method
Returns the value of the property passed in by name.
Syntax
'Declaration
 
Public Function GetValueOrDefault(Of T)( _
   ByVal propertyName As System.String, _
   ByVal defaultValue As T _
) As T
'Usage
 
Dim instance As PropertyValueCollection
Dim propertyName As System.String
Dim defaultValue As T
Dim value As T
 
value = instance.GetValueOrDefault(Of T)(propertyName, defaultValue)
public T GetValueOrDefault<T>( 
   System.string propertyName,
   T defaultValue
)

Parameters

propertyName
defaultValue

Type Parameters

T
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