C-DEngine 5.105

TheThingRegistry..::..DeleteThingByProperty Method

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

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

Syntax


public static TheThing DeleteThingByProperty(
	string pEngineName,
	Guid pUID,
	string pPropName,
	string pPropValue
)
Public Shared Function DeleteThingByProperty ( _
	pEngineName As String, _
	pUID As Guid, _
	pPropName As String, _
	pPropValue As String _
) As TheThing
public:
static TheThing^ DeleteThingByProperty(
	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

Return the deleted Thing