C-DEngine 5.105

cdeP..::..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(
	cdeP pProp,
	string pName,
	double pValue,
	bool UpdateThing
)
Public Shared Function SetSafePropertyNumber ( _
	pProp As cdeP, _
	pName As String, _
	pValue As Double, _
	UpdateThing As Boolean _
) As cdeP
public:
static cdeP^ SetSafePropertyNumber(
	cdeP^ pProp, 
	String^ pName, 
	double^ pValue, 
	bool^ UpdateThing
)

Parameters

pProp
Type: nsCDEngine.Engines.ThingService..::..cdeP
Target Property
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