Welcome!
This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!
Custom properties
Is there any way to specify custom properties in my C# server? The property I want to add will change between installation environments, and I don't want it to be in a database.
Hi Ferros,
You can do it by adding a key and a value to the "maisPropriedades" node in the Configuracoes.xml file. The syntax is as follows:
<maisPropriedades>
<item>
<key>
<string>KEY_NAME</string>
</key>
<value>
<string>VALUE</string>
</value>
</item>
</maisPropriedades>
In order to get the value all you have to is:
var value = Configuracao.GetPropriedade("KEY_NAME");
Keep Informed
About the Community
This platform is for beginners and experts willing to share their Genio knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
Read Guidelines
Question tools
6 follower(s)
Stats
Asked: 20/08/19, 13:22 |
Seen: 1701 times |
Last updated: 26/09/19, 17:03 |