D3DImage.TryLock(Duration) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to lock the D3DImage and waits for the specified duration.
public:
bool TryLock(System::Windows::Duration timeout);
public bool TryLock (System.Windows.Duration timeout);
member this.TryLock : System.Windows.Duration -> bool
Public Function TryLock (timeout As Duration) As Boolean
Parameters
- timeout
- Duration
The duration to wait for the lock to be acquired.
Returns
true
if the lock was acquired; otherwise, false
.
Exceptions
timeout
is set to Automatic.
The lock count equals UInt32.MaxValue.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.