طريقة System::Threading::Monitor::TryEnter

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

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

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

انظر أيضًا

Monitor::TryEnter(const SharedPtr<Object>&, int32_t) method

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

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

انظر أيضًا

Monitor::TryEnter(const SharedPtr<Object>&, TimeSpan) method

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

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

انظر أيضًا

Monitor::TryEnter(const System::SharedPtr<Object>&, bool&) method

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

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

انظر أيضًا

Monitor::TryEnter(const System::SharedPtr<Object>&, int32_t, bool&) method

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

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

انظر أيضًا

Monitor::TryEnter(const System::SharedPtr<Object>&, TimeSpan, bool&) method

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

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

انظر أيضًا