JAMS Developer Guide
GetValueOrCreate<T> Method


MVPSI.JAMS Namespace > PropertyValueCollection Class : GetValueOrCreate<T> Method
The name of the property
Gets the value of a property if that property is defined. If it is not defined, returns an instance of the PropertyDefinition.
Syntax
'Declaration
 
Public Function GetValueOrCreate(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.GetValueOrCreate(Of T)(propertyName)
public T GetValueOrCreate<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