## Interlocked::Exchange(T\&, T) method


Scambia il valore su variabile: memorizza il nuovo valore e restituisce il valore che la variabile aveva immediatamente prima della memorizzazione.

```cpp
template<typename T> static std::enable_if<IsSupportedInt<T>, T>::type System::Threading::Interlocked::Exchange(T &location1, T value)
```


| Parametro | Descrizione |
| --- | --- |
| T | Tipo variabile. |

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| location1 | T\& | Riferimento variabile da modificare. |
| valore | T | Valore da memorizzare. |

### ReturnValue

Valore della variabile subito prima che fosse modificata.

## Vedi anche

* Class [Interlocked](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
## Interlocked::Exchange(T\&, T) method


Scambia il valore su variabile: memorizza il nuovo valore e restituisce il valore che la variabile aveva immediatamente prima della memorizzazione. Non implementato.

```cpp
template<typename T> static std::enable_if<!IsSupportedInt<T>, T>::type System::Threading::Interlocked::Exchange(T &location1, T value)
```


| Parametro | Descrizione |
| --- | --- |
| T | Tipo variabile. |

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| location1 | T\& | Riferimento variabile da modificare. |
| valore | T | Valore da memorizzare. |

### ReturnValue

Valore della variabile subito prima che fosse modificata.

## Vedi anche

* Class [Interlocked](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
