Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.Common.Config.ConfigSetting< T > Class Template Reference

A config setting of a specified type, to be used with AppConfigBase and derived classes. More...

Inheritance diagram for Google.Api.Ads.Common.Config.ConfigSetting< T >:
Google.Api.Ads.Common.Config.ConfigSetting

Public Member Functions

 ConfigSetting (string name, T defaultValue)
 Initializes a new instance of the ConfigSetting{T} class. More...
 
override void TryParse (string valueText)
 Tries to parse a value. More...
 

Properties

Value [get, set]
 Gets or sets the value of the setting. More...
 
DefaultValue [get, set]
 Gets the default value of the setting. More...
 
- Properties inherited from Google.Api.Ads.Common.Config.ConfigSetting
string Name [get, set]
 Gets the name of the setting. More...
 

Detailed Description

A config setting of a specified type, to be used with AppConfigBase and derived classes.

Template Parameters
TThe type of the setting.

Constructor & Destructor Documentation

Google.Api.Ads.Common.Config.ConfigSetting< T >.ConfigSetting ( string  name,
defaultValue 
)
inline

Initializes a new instance of the ConfigSetting{T} class.

Parameters
nameName of the setting.
defaultValueThe default value.

Member Function Documentation

override void Google.Api.Ads.Common.Config.ConfigSetting< T >.TryParse ( string  valueText)
inlinevirtual

Tries to parse a value.

Parameters
valueTextThe value text.

Implements Google.Api.Ads.Common.Config.ConfigSetting.

Property Documentation

T Google.Api.Ads.Common.Config.ConfigSetting< T >.DefaultValue
getset

Gets the default value of the setting.

Gets or sets the value of the setting.


The documentation for this class was generated from the following file: