Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdWords.Util.MapUtilities< TKey, TValue > Class Template Reference

Provides utility functions for creating and handling fields of the form TKey_TValueMapEntry[]. More...

Public Member Functions

MapUtilities< TKey, TValue > Add (TKey key, TValue value)
 Adds the specified key to the map. More...
 
MapUtilities< TKey, TValue > AddEntry (IMapEntry< TKey, TValue > entry)
 Adds the specified string map entry to the map. More...
 
MapUtilities< TKey, TValue > AddEntries (IMapEntry< TKey, TValue >[] entries)
 Adds an array of string map entries to the map. More...
 
Dictionary< TKey, TValue > AsDict ()
 Returns the settings as a dictionary. More...
 
T[] AsArray< T > ()
 Returns the settings as a list of string map entries. More...
 

Detailed Description

Provides utility functions for creating and handling fields of the form TKey_TValueMapEntry[].

Member Function Documentation

MapUtilities<TKey, TValue> Google.Api.Ads.AdWords.Util.MapUtilities< TKey, TValue >.Add ( TKey  key,
TValue  value 
)
inline

Adds the specified key to the map.

Parameters
keyThe settings key.
valueThe settings value.
Returns
The maputils instance, for chaining calls.
MapUtilities<TKey, TValue> Google.Api.Ads.AdWords.Util.MapUtilities< TKey, TValue >.AddEntries ( IMapEntry< TKey, TValue >[]  entries)
inline

Adds an array of string map entries to the map.

Parameters
entriesThe list of string map entries.
Returns
The maputils instance, for chaining calls.
MapUtilities<TKey, TValue> Google.Api.Ads.AdWords.Util.MapUtilities< TKey, TValue >.AddEntry ( IMapEntry< TKey, TValue >  entry)
inline

Adds the specified string map entry to the map.

Parameters
entryThe string map entry.
Returns
The maputils instance, for chaining calls.
T [] Google.Api.Ads.AdWords.Util.MapUtilities< TKey, TValue >.AsArray< T > ( )
inline

Returns the settings as a list of string map entries.

Returns
The settings, as a list of string map entries.
Type Constraints
T :IMapEntry 
T :TKey 
T :TValue 
T :new() 
Dictionary<TKey, TValue> Google.Api.Ads.AdWords.Util.MapUtilities< TKey, TValue >.AsDict ( )
inline

Returns the settings as a dictionary.

Returns
The dictionary that contains the settings.

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