Share via


WriteableBitmap.TryLock(Duration) 메서드

정의

비트맵을 잠그려고 시도하여 지정된 시간 길이 이하만 기다립니다.

public:
 bool TryLock(System::Windows::Duration timeout);
[System.Security.SecurityCritical]
public bool TryLock (System.Windows.Duration timeout);
public bool TryLock (System.Windows.Duration timeout);
[<System.Security.SecurityCritical>]
member this.TryLock : System.Windows.Duration -> bool
member this.TryLock : System.Windows.Duration -> bool
Public Function TryLock (timeout As Duration) As Boolean

매개 변수

timeout
Duration

기다릴 시간 길이를 나타내는 Duration입니다. 값이 0이면 즉시 반환됩니다. 값이 Forever이면 무한정 차단됩니다.

반환

Boolean

잠금을 가져왔으면 true이고, 그렇지 않으면 false입니다.

특성

예외

timeoutAutomatic로 설정됩니다.

설명

잠금을 획득하면 메서드의 TryLock 동작이 메서드와 동일합니다 Lock .

적용 대상

추가 정보