C-DEngine 5.105

cdeP Members

The cdeP type exposes the following members.

Constructors


  Name Description
Public method cdeP()()()()
Constructor of a new Property
Public method cdeP(cdeP)
Creates a new property from an exiting property
Public method cdeP(String, Object)
Creates a temporary new Property that is not bound to a TheThing and will not be made persistant
Public method cdeP(ICDEThing)
Constructor of a new property
Public method cdeP(ICDEThing, Action<(Of <<'(cdeP>)>>))
Constructor of a new Property setting the Owner-Thing and an OnProperty Change event

Methods


  Name Description
Public method Static member AreValuesDifferent
A static function that allows to compare two property-values of a given Property Type
Public method ClearAllEvents
Removes all Events from cdeP
Public method CloneBase
Clonse an incoming object into this object
(Inherited from TheDataBase.)
Public method CloneTo
Clones the metadata of the current class to a new class provided to the method
(Inherited from TheMetaDataBase.)
Public method DeclareSecureProperty
This function allows to declare a secure Property Secure Properties are stored encrypted and can only be decrypted on nodes with the same ApplicationID and SecurityID. These properties are sent encrypted via the mesh. JavaScript clients CANNOT decrypt the value of the property!
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FireEvent(String, Boolean, Int32)
Fire an Event on a property
Public method FireEvent(String, TheProcessMessage, Boolean, Int32)
Fire an Event on a property
(Inherited from TheDataBase.)
Public method GetAllProperties()()()()
returns a list of all sub-properties of the cdeP Only properties directly attached to a this property will be returned.
Public method GetAllProperties(Int32)
returns a list of all sub-properties of the cdeP as well as their sub-properties up to the specified nesting level
Public method GetConfigMeta
Helper function to retrieve the configuration meta-data for this property from the corresponding sub-properties
Public method GetHashCode (Inherited from Object.)
Public method Static member GetParentProperty
Returns the parent property of a given property if it has a parent
Public method GetPropertiesMetaStartingWith
Returns all properties where the cdeM Meta Field starts with pName Only properties directly attached to a this Property will be returned.
Public method GetPropertiesStartingWith
Returns a list of Properties starting with pName in the Name Only properties directly attached to a this Property will be returned.
Public method GetProperty(String)
Returns a property of a given Name. If the property does not exist the method returns NULL
Public method GetProperty(String, Boolean)
Returns a property of a given Name. If the property does not exist the method returns NULL
Public method Static member GetPropertyPath
Returns the Hirarchically property path of a given property
Public method GetPropertyType
Return the property type of a given property name. Returns ZERO if the property does not exist or the name is null/""
Public method GetSensorMeta
Public method GetSensorProviderInfo
Public method GetThing
Return the OwnerThing of this property
Public method GetType (Inherited from Object.)
Public method GetUpdater
Returns the Updater Guid
Public method GetValue
Use this method to ensure the correct value of a Property. If cdeE|1 is set, the property value is stored encrypted and only this method returns the correct Value
Public method HasRegisteredEvents(String)
Returns true if the requested eThingEvents has registered callbacks
Public method HasRegisteredEvents()()()()
Returns true if this property has registered events
Public method HasThing
Returns true if the property has an Owner-Thing
Public method IsEventRegistered
Returns true if the requested eThingEvents has registered callbacks
(Inherited from TheDataBase.)
Protected method MemberwiseClone (Inherited from Object.)
Public method NotifyMirror
If called from a derived class and the class was stored in a StorageMirror, this method will call the "NotifyOfUpdate" method in the StorageMirror to inform all Notification Clients that this record has changed. This is VERY Expensive! Do not call too often! This does not work with StorageMirrors that require a PostSalt (unique table name)
(Inherited from TheDataBase.)
Protected method OnPropertyChanged (Inherited from TheBindableBase.)
Public method RegisterEvent(String, Action<(Of <<'(cdeP>)>>))
Register a callback that will be fired on a Property Event
Public method RegisterEvent(String, Action<(Of <<'(Object, TheProcessMessage>)>>))
Register a callback that will be fired on a Property Event
(Inherited from TheDataBase.)
Public method RegisterEvent2
Register a callback that will be fired on a Property Event
(Inherited from TheDataBase.)
Public method RegisterGlobally
If this function is called, the Property will be known globally on all nodes
Public method RegisterOnChange
Registers a new OnPropertyChange Event Callback
Public method RegisterProperty
Registers a new property with TheThing at runtime
Public method RegisterStatusChanged
registers a function that is called when the StatusLevel of this Thing has changed
Public method RemovePropertiesStartingWith
Removes all properties with a given prefix from TheThing at Runtime Only properties directly attached to a this Property will be deleted.
Public method RemoveProperty
Removes a property from TheThing at Runtime
Public method ResetUpdater
Resets the Updater
Public method SetConfigMeta
Helper function to set the sub-properties containing configuration meta-data for this property.
Public method SetProperties
Sets multiple properties at once. Use with the Historian feature for a consistent snapshot that has all these property changes. If any of the properties do not exist, they 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
Public method SetProperty(String, Object)
Sets a property If the property does not exist, it will be created
Public method SetProperty(String, Object, ePropertyTypes)
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
Public method SetProperty(String, Object, Int32, Action<(Of <<'(cdeP>)>>))
Sets a property If the property does not exist, it will be created
Public method SetProperty(String, Object, ePropertyTypes, 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
Public method SetProperty(String, Object, DateTimeOffset)
Sets a property If the property does not exist, it will be created The Property Type will be set as well
Public method SetProperty(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
Protected method SetProperty``1(UMP%, UMP, Int32, Int32, String) (Inherited from TheBindableBase.)
Public method SetPropertyEvents Obsolete.
Turns event on/off on a Property.
Public method SetPropertyForceEvents
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
Public method SetPropertyNoEvents
Sets a property If the property does not exist, it will be created The Property Change Events and Set Property events are NOT Fired
Public method SetPropertyTypeOnly
Sets the type of a property If the property does not exist, it will be created
Public method SetPublication
Set the PublisCentral bit on the cdeFOC. The requestor is the node requesting the PC
Public method Static member SetSafeProperty(cdeP, String, Object, ePropertyTypes, Boolean)
A type/null save helper to Store a Numeric value in a given property. The target property type will be set to "TString"
Public method Static member SetSafeProperty(cdeP, String, Object, ePropertyTypes, Boolean, Boolean)
A type/null save helper to Store a Numeric value in a given property. The target property type will be set to "TString"
Public method Static member SetSafePropertyBool
A type/null save helper to Store a Numeric value in a given property. The target property type will be set to "TBoolean"
Public method Static member SetSafePropertyDate
A type/null save helper to Store a Numeric value in a given property. The target property type will be set to "TDate"
Public method Static member SetSafePropertyGuid
A type/null save helper to Store a Numeric value in a given property. The target property type will be set to "TGuid"
Public method Static member SetSafePropertyNumber
A type/null save helper to Store a Numeric value in a given property. The target property type will be set to "TNumber"
Public method Static member SetSafePropertyString
A type/null save helper to Store a Numeric value in a given property. The target property type will be set to "TString"
Public method SetSensorMeta
Public method SetSensorProviderInfo
Public method SetThing
Sets the Owner-Thing of a Property
Public method SetUpdater
Sets an Updater Guid for the Property. The updater can check if an OnPropertyChange was fired by itself
Public method ToString
Returns a string representation of the Property Value
Public method UnregisterEvent(String, Action<(Of <<'(cdeP>)>>))
Unregister a previously registered callback
Public method UnregisterEvent(String, Action<(Of <<'(Object, TheProcessMessage>)>>))
Unregister a previously registered callback
(Inherited from TheDataBase.)
Public method UnregisterEvent2
Unregister a previously registered callback
(Inherited from TheDataBase.)
Public method UnregisterStatusChanged
unregisters a function that is called when the StatusLevel of this Thing has changed

Properties


  Name Description
Public property cdeA
Access Level Mask 0=Everyone; 1=Untrusted Guest; 2=Trusted Guest; 4=Trusted Member1; 8=Trusted Member2; 16=Truested Member3; 32=Senior Member 1; 64=Senior Member 2; 128=Admin;
(Inherited from TheMetaDataBase.)
Public property cdeAVA
Availability of this record The higher this number the higher the availability of this record The Storage Service might store the data in multiple location to ensure maximum availability
(Inherited from TheDataBase.)
Public property cdeCTIM
Timestamp of this class. Will be set to DateTimeOffset.Now on creation of the Class
(Inherited from TheDataBase.)
Public property cdeE
Extended Property Flags Bit 1(1) If set to TRUE, all storage and communication for this property has to be encrypted Bit 2(2) If Set to TRUE, the Property Update will be sent with Queue Prio 1 (Fastest Sending using FILO) Bit 3(4) If set to TRUE, the CTIM of the Property will be automatically set to DateTimeOffset.Now if the property was changed. Bit 4(8) If set to TRUE, the property will ALWAYS update - no mater if the old value= new value ("forceWrite") Bit 5(16) if Set to TRUE, the property will NOT be sent via initial NMI_SET_DATA to browsers, only updates are sent Bit 7(64)=Property is NMI related
Public property cdeEXP
Expiration in Seconds of the class If a derived class is stored in a StorageMirror and cdeEXP is set to>0, the StorageMirror will automatically delete this record after the time has passed
(Inherited from TheDataBase.)
Public property cdeF
Feature ID
(Inherited from TheMetaDataBase.)
Public property cdeM
The Cookie or Meta information for this class
(Inherited from TheMetaDataBase.)
Public property cdeMID
Unique Key for the class derived from TheDataBase. this will be used in the StorageService as the Unique Index in the SQL Tables
(Inherited from TheDataBase.)
Public property cdeN
Guid of Hosting Node - new in 4.108: Moved from MetaDataBase to here
(Inherited from TheDataBase.)
Public property cdeO
Owner Guid
(Inherited from TheMetaDataBase.)
Public property cdePB
The Proptery Bag of a Property. ATTENTION: Direct Manipulation of cdePB will not fire any events and circumvents encryption and other API based management. Only access this Bag if you know exactly what you are doing. NOTE: It is possible that we remove access to the Bag in a later version of the C-DEngine - do not rely on its access availability
Public property cdePRI
Priority of this record. A lower number means a higher priority. Data with higher priority will be retrieved faster than those with lower prio
(Inherited from TheDataBase.)
Public property cdeSEQ
Sequence number
(Inherited from TheMetaDataBase.)
Public property cdeT
Type of Property 0=String 1=Number 2=boolean 3=Date 4=Binary 5=Function 6=Guid
Public property cdeU
User ID owning this resource
(Inherited from TheMetaDataBase.)
Public property HasChanged
Returns true if theproperty has changed during the last SetProperty. If false, the last SetProperty tried to write the same value
Public property IsConfig
Public property IsSensor
Public property Name
Name of the property
Public property PropertyCount
Returns a count of all current Properties Only properties directly attached to a this Property will be counted.
Public property Value
The current value of the property. ATTENTION: If the value is stored encrypted, this property return the encrypted value NOT the unencrypted value! Is is required for proper serialization/deserialization. Use .GetValue() instead for proper decrypted value

Events


  Name Description
Public event PropertyChanged
Multicast event for property change notifications.
(Inherited from TheBindableBase.)