C-DEngine 5.105

TheThingRegistry..::..DeleteThingsByProperty Method

Deletes all TheThings found with the given Property Name and Value. I.e: DeleteThingByProperty("MyEngine",Guid.empty,"DeviceType","MyThingType"); will delete all things of the MyEngine with the DeviceType "MyThingType"

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

Syntax


public static bool DeleteThingsByProperty(
	string pEngineName,
	Guid pUID,
	string pPropName,
	string pPropValue
)
Public Shared Function DeleteThingsByProperty ( _
	pEngineName As String, _
	pUID As Guid, _
	pPropName As String, _
	pPropValue As String _
) As Boolean
public:
static bool^ DeleteThingsByProperty(
	String^ pEngineName, 
	Guid^ pUID, 
	String^ pPropName, 
	String^ pPropValue
)

Parameters

pEngineName
Type: String
Engine that owns TheThing to be deleted
pUID
Type: Guid
UID of the user requesting the Deletion - if TheThing has a Acces Level, the user has to have the same access level in order to be allowed to delete TheThing
pPropName
Type: String
Name of the Property
pPropValue
Type: String
Value of the Property

Return Value

Returns true if successful and false if no Things matching the Prop/Val were found