C-DEngine 5.105

cdeP..::..SetProperty Method (String, Object, ePropertyTypes, DateTimeOffset, Int32, Action<(Of <(<'cdeP>)>)>)

Sets a property If the property does not exist, it will be created All Events (Change and Set) will be fired - even if the property has not changed The Property Type will be set as well

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

Syntax


public cdeP SetProperty(
	string pName,
	Object pValue,
	ePropertyTypes pType,
	DateTimeOffset sourceTimeStamp,
	int EventAction,
	Action<cdeP> pOnChangeEvent
)
Public Function SetProperty ( _
	pName As String, _
	pValue As Object, _
	pType As ePropertyTypes, _
	sourceTimeStamp As DateTimeOffset, _
	EventAction As Integer, _
	pOnChangeEvent As Action(Of cdeP) _
) As cdeP
public:
cdeP^ SetProperty(
	String^ pName, 
	Object^ pValue, 
	ePropertyTypes^ pType, 
	DateTimeOffset^ sourceTimeStamp, 
	int^ EventAction, 
	Action<cdeP^>^ pOnChangeEvent
)

Parameters

pName
Type: String
Property Name
pValue
Type: Object
Value to be set
pType
Type: nsCDEngine.Engines.ThingService..::..ePropertyTypes
The Type of the Property
sourceTimeStamp
Type: DateTimeOffset
Overwrite the CTIM (Creation Time Stamp). If set to DateTimeOffset.MinValue the CTIM will be set to the current system time.
EventAction
Type: Int32
Defines what events should be fired
pOnChangeEvent
Type: Action<(Of <(<'cdeP>)>)>
a callback for a local (current node) onChangeEvent

Return Value