¡@

Home 

c# Programming Glossary: configurationproperty

C# WCF System.Configuration.ConfigurationErrorsException: Unrecognized element 'ManagedService'

http://stackoverflow.com/questions/12824301/c-sharp-wcf-system-configuration-configurationerrorsexception-unrecognized-elem

public class ManagedServicesSection ConfigurationSection ConfigurationProperty services IsDefaultCollection true public ManagedServiceCollection.. public class ManagedService ConfigurationElement ConfigurationProperty serviceAssembly IsRequired true public string ServiceAssembly.. string this serviceAssembly set this serviceAssembly value ConfigurationProperty serviceType DefaultValue IRunnable IsRequired true public string..

How to create custom config section in app.config? [duplicate]

http://stackoverflow.com/questions/1316058/how-to-create-custom-config-section-in-app-config

Company public class Company ConfigurationElement ConfigurationProperty name IsRequired true public string Name get return this name.. public string Name get return this name as string ConfigurationProperty code IsRequired true public string Code get return this code.. new RegisterCompaniesConfig System.Configuration.ConfigurationProperty Companies ConfigurationCollection typeof Companies AddItemName..

Custom app.config section with a simple list of “add” elements

http://stackoverflow.com/questions/2718095/custom-app-config-section-with-a-simple-list-of-add-elements

My public class MyConfigSection ConfigurationSection ConfigurationProperty IsRequired true IsDefaultCollection true public MyConfigInstanceCollection.. IsKey true for property exposed as the GetElementKey above ConfigurationProperty name IsKey true IsRequired true public string Name get return.. Name get return string base name set base name value ConfigurationProperty code IsRequired true public string Code get return string base..

How to implement a ConfigurationSection with a ConfigurationElementCollection

http://stackoverflow.com/questions/3935331/how-to-implement-a-configurationsection-with-a-configurationelementcollection

int port string reportType Port port ReportType reportType ConfigurationProperty Port DefaultValue 0 IsRequired true IsKey true public int Port.. int Port get return int this Port set this Port value ConfigurationProperty ReportType DefaultValue File IsRequired true IsKey false public.. class ServiceConfigurationSection ConfigurationSection ConfigurationProperty Services IsDefaultCollection false ConfigurationCollection typeof..

how to have custom attribute in ConfigurationElementCollection?

http://stackoverflow.com/questions/8829414/how-to-have-custom-attribute-in-configurationelementcollection

with this code public class MySection ConfigurationSection ConfigurationProperty MyCollection Options ConfigurationPropertyOptions.IsRequired.. ConfigurationProperty MyCollection Options ConfigurationPropertyOptions.IsRequired public MyCollection MyCollection get return.. element return EntryElement element .Name ConfigurationProperty default IsRequired false public string Default get return..