Increment Method
Collapse the table of content
Expand the table of content

Interlocked.Increment Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Increments a specified variable and stores the result, as an atomic operation.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Increment(Int32) Increments a specified 32-bit signed variable and stores the result, as an atomic operation.
Public method Static member Increment(Int64) Increments a specified 64-bit signed integer variable and stores the result, as an atomic operation.
Top

Show:
© 2017 Microsoft