Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.Common.Util.TemporaryIdGenerator Class Reference

Generates a sequence of temporary negative IDs. More...

Public Member Functions

 TemporaryIdGenerator ()
 Initializes a new instance of the TemporaryIdGenerator class. More...
 
 TemporaryIdGenerator (int startId)
 Initializes a new instance of the TemporaryIdGenerator class. More...
 

Properties

long Next [get]
 Returns the next ID in the list. More...
 
IEnumerator< int > Sequence [get]
 Gets the sequence of numbers. More...
 

Detailed Description

Generates a sequence of temporary negative IDs.

Constructor & Destructor Documentation

Google.Api.Ads.Common.Util.TemporaryIdGenerator.TemporaryIdGenerator ( )
inline

Initializes a new instance of the TemporaryIdGenerator class.

Google.Api.Ads.Common.Util.TemporaryIdGenerator.TemporaryIdGenerator ( int  startId)
inline

Initializes a new instance of the TemporaryIdGenerator class.

Parameters
startIdThe ID to start generating the sequence from.
Exceptions
ArgumentExceptionIf startId is a positive value.

The IDs are generated in the increasing order from the startId .

Property Documentation

long Google.Api.Ads.Common.Util.TemporaryIdGenerator.Next
get

Returns the next ID in the list.

Returns
IEnumerator<int> Google.Api.Ads.Common.Util.TemporaryIdGenerator.Sequence
get

Gets the sequence of numbers.


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