How to secure your dynamic objects |
Securise your dynamic objects
This class lets you secure your dynamic objects.
Dynamic objects are objects that are not visible in the Visual-Guard "Property Action" editor's treeview. In general, these objects are created by writing code and stored in an object list. Because they do not have a direct reference in the object, you cannot select them from the treeview.
Example:
Label lbl = new Label(); lbl.Name = "mylabel"; this.Controls.Add(lbl);
Label lbl = new Label(); lbl.Name = "mylabel"; this.Controls.Add(lbl);
By using VGExpression, you can select and modify a "Label" property such as these:
#this.Controls['mylabel'].Visible = false
To use dynamic objects you must have Visual-Guard version 2.8 or higher.
Objects used in VGExpression must have their "Namespace". (For example: New System.Windows.Forms.Label())
You can classify the execution order of the "Expressions" by using the "Up" and "Down" buttons
Open a VGRepository
Open an application
Open a permission
Create or edit a "Property Action"
Go to "Select the component and edit the properties"
Click "Add Expression"
Submit your VGExpression
Click "Finish"
To do this your property must have a get function in write mode. Your VGExpression is made up of two parts: The first is the target, the second is the value.
Example:
You can call a method via a dynamic action.
Example: