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


محاولات للحصول على قفل حصري على الكائن المحدد غير مُنفّذ.

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


## انظر أيضًا

* 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


محاولات، للعدد المحدد من الملليثانية، للحصول على قفل حصري على الكائن المحدد غير مُنفّذ.

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


## انظر أيضًا

* 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


محاولات، للمدة المحددة من الوقت، للحصول على قفل حصري على الكائن المحدد غير مُنفّذ.

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


## انظر أيضًا

* 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


محاولات للحصول على قفل حصري على الكائن المحدد، وتضبط قيمةً ذريةً تشير إلى ما إذا تم أخذ القفل.

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

## انظر أيضًا

* 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


يحاول، لمدة الوقت المحدد، الحصول على قفل حصري على الكائن المحدد، ويضبط قيمةً بصورة ذرية تشير إلى ما إذا تم أخذ القفل.

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

## انظر أيضًا

* 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


يحاول، لمدة الوقت المحدد، الحصول على قفل حصري على الكائن المحدد، ويضبط قيمةً بصورة ذرية تشير إلى ما إذا تم أخذ القفل.

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

## انظر أيضًا

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