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


Tente d'acquérir un verrou exclusif sur l'objet spécifié. Non implémenté.

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


## Voir aussi

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


Tente, pendant le nombre de millisecondes spécifié, d'acquérir un verrou exclusif sur l'objet spécifié. Non implémenté.

```cpp
static bool System::Threading::Monitor::TryEnter(const SharedPtr<Object> &obj, int32_t millisecondsTimeout)
```


## Voir aussi

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


Tente, pendant la durée spécifiée, d'acquérir un verrou exclusif sur l'objet spécifié. Non implémenté.

```cpp
static bool System::Threading::Monitor::TryEnter(const SharedPtr<Object> &obj, TimeSpan timeout)
```


## Voir aussi

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


Tente d'acquérir un verrou exclusif sur l'objet spécifié et définit de manière atomique une valeur indiquant si le verrou a été pris.

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

## Voir aussi

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


Tente, pendant la durée spécifiée, d’acquérir un verrou exclusif sur l’objet spécifié, et définit de manière atomique une valeur indiquant si le verrou a été pris.

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

## Voir aussi

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


Tente, pendant la durée spécifiée, d’acquérir un verrou exclusif sur l’objet spécifié, et définit de manière atomique une valeur indiquant si le verrou a été pris.

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

## Voir aussi

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