C-DEngine 5.105

TheThing..::..SetSafePropertyNumber Method

A type/null save helper to Store a Numeric value in a given property. The target property type will be set to "TNumber"

Namespace:  nsCDEngine.Engines.ThingService
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static cdeP SetSafePropertyNumber(
	ICDEThing pThing,
	string pName,
	double pValue,
	bool UpdateThing
)
Public Shared Function SetSafePropertyNumber ( _
	pThing As ICDEThing, _
	pName As String, _
	pValue As Double, _
	UpdateThing As Boolean _
) As cdeP
public:
static cdeP^ SetSafePropertyNumber(
	ICDEThing^ pThing, 
	String^ pName, 
	double^ pValue, 
	bool^ UpdateThing
)

Parameters

pThing
Type: nsCDEngine.Engines.ThingService..::..ICDEThing
Target TheThing
pName
Type: String
Property Name
pValue
Type: Double
Numeric (double) Property Value
UpdateThing
Type: Boolean
If set to true, TheThing's UpdateThing function will be called and TheThing is updated in TheThingRegistry and TheThingRegistry is flushed to Disk

Return Value