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


Tenta di acquisire un lock esclusivo sull'oggetto specificato. Non implementato.

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


## Vedi anche

* 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


Tenta, per il numero specificato di millisecondi, di acquisire un lock esclusivo sull'oggetto specificato. Non implementato.

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


## Vedi anche

* 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


Tenta, per la durata specificata, di acquisire un lock esclusivo sull'oggetto specificato. Non implementato.

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


## Vedi anche

* 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


Tenta di acquisire 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::TryEnter(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++](../../../)
## Monitor::TryEnter(const System::SharedPtr\<Object\>\&, int32_t, bool\&) method


Tenta, per il periodo di tempo specificato, di acquisire 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::TryEnter(const System::SharedPtr<Object> &obj, int32_t millisecondsTimeout, bool &lockTaken)
```

## Vedi anche

* 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


Tenta, per il periodo di tempo specificato, di acquisire 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::TryEnter(const System::SharedPtr<Object> &obj, TimeSpan timeout, bool &lockTaken)
```

## Vedi anche

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