JAMS Developer Guide
GetValueOrNull<T> Method (PropertyValueCollection)


MVPSI.JAMS Namespace > PropertyValueCollection Class : GetValueOrNull<T> Method
The name of the property
Gets the value of a property if that property is defined. If it is not defined, returns null.
Syntax
'Declaration
 
Public Function GetValueOrNull(Of T As {New})( _
   ByVal propertyName As System.String _
) As T
'Usage
 
Dim instance As PropertyValueCollection
Dim propertyName As System.String
Dim value As T
 
value = instance.GetValueOrNull(Of T)(propertyName)
public T GetValueOrNull<T>( 
   System.string propertyName
)
where T: new()

Parameters

propertyName
The name of the property

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