Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Decrements a specified variable and stores the result, as an atomic operation.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Function Decrement ( _
ByRef ___location As Integer _
) As Integer
public static int Decrement(
ref int ___location
)
public:
static int Decrement(
int% ___location
)
static member Decrement :
___location:int byref -> int
public static function Decrement(
___location : int
) : int
Parameters
- ___location
Type: System. . :: . .Int32%
The variable whose value is to be decremented.
Return Value
Type: System. . :: . .Int32
The decremented value.
Remarks
This method handles an overflow condition by wrapping: If ___location = Int32..::..MinValue, ___location - 1 = Int32..::..MaxValue. No exception is thrown.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.