طريقة 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)

انظر أيضًا