C-DEngine 5.105

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

Sets a property If the property does not exist, it will be created

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

Syntax


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

Parameters

pName
Type: String
Property Name
pValue
Type: Object
Value to be set
EventAction
Type: Int32
Defines what events should be fired
pOnChangeEvent
Type: Action<(Of <(<'cdeP>)>)>
a callback for a local (current node) onChangeEvent

Return Value