ArcFM Engine Developer Guide
HasValue<TProp> Method


Returns bool if the property has been populated
Syntax
'Declaration
 
Public Function HasValue(Of TProp)( _
   ByVal expression As Expression(Of Func(Of T,TProp)) _
) As Boolean
'Usage
 
Dim instance As ResponderObjectBaseGeneric(Of T)
Dim expression As Expression(Of Func(Of T,TProp))
Dim value As Boolean
 
value = instance.HasValue(Of TProp)(expression)
public bool HasValue<TProp>( 
   Expression<Func<T,TProp>> expression
)

Parameters

expression

Type Parameters

TProp

Return Value

True if the value of the property is not empty or null
Remarks
use as follows: var object = new AlertsObject(row); bool hasValue = object.HasValue(o=>o.Property);
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ResponderObjectBaseGeneric<T> Class
ResponderObjectBaseGeneric<T> Members

 

 


Send Comment