## Monitor::Enter(const SharedPtr\<Object\>\&) method


Acquisisce un lock esclusivo su un oggetto specificato.

```cpp
static void System::Threading::Monitor::Enter(const SharedPtr<Object> &obj)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | L'oggetto su cui acquisire il lock del monitor. |

## Vedi anche

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [Monitor](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Page for C++](../../../)
## Monitor::Enter(const System::SharedPtr\<Object\>\&, bool\&) method


Acquisisce un lock esclusivo sull'oggetto specificato e imposta in modo atomico un valore che indica se il lock è stato acquisito.

```cpp
static void System::Threading::Monitor::Enter(const System::SharedPtr<Object> &obj, bool &lockTaken)
```

## Vedi anche

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [Monitor](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Page for C++](../../../)
