C-DEngine 5.105

TheThingRegistry..::..ClassPropertiesToThingProperties Method

Converts fields and properties of a class into Thing Properties

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

Syntax


public static void ClassPropertiesToThingProperties(
	TheThing pBaseThing,
	Object MyValue,
	string pNamePrefix,
	cdeP pBaseProperty
)
Public Shared Sub ClassPropertiesToThingProperties ( _
	pBaseThing As TheThing, _
	MyValue As Object, _
	pNamePrefix As String, _
	pBaseProperty As cdeP _
)
public:
static void ClassPropertiesToThingProperties(
	TheThing^ pBaseThing, 
	Object^ MyValue, 
	String^ pNamePrefix, 
	cdeP^ pBaseProperty
)

Parameters

pBaseThing
Type: nsCDEngine.Engines.ThingService..::..TheThing
Target Thing to create the properties for
MyValue
Type: Object
Class containing the fields and properties
pNamePrefix
Type: String
Allows to add a prefix to all Thing Properties
pBaseProperty
Type: nsCDEngine.Engines.ThingService..::..cdeP
If not null, all new properties will be sub-properties of this given property