본문 바로가기
Language(언어)/ASP

ASP Application 개체 Application.Lock

by 대학교닷컴 2013. 12. 6.


Application.Lock

 

영문
Syntax: Application.LockThe Lock
method prevents all other users from making changes in the Application object.

The Lock method prevents all other users from changing any of the variables in the Contents collection of the Application object.

Application objects are designed to be shared among an unlimited number of users. Therefore, you need the ability to allow only one user at a time to make changes and you do this by locking everybody else out.

You can use the Unlock method to explicitly remove the Lock placed upon the Application object. Remember, to completely unlock an object, you must call Unlock the same number of times you have called Lock. Fortunately, the server will automatically unlock all locks placed on the object when the script times out or the .asp file ends.

번역본
구문 : Application.LockThe Lock
메서드는 Application 개체의 변화를 저지르는 다른 모든 사용자를 방지할 수 있습니다.

잠금 메서드는 Application 개체의 내용 컬렉션의 변수의 변화로부터 다른 모든 사용자를 방지할 수 있습니다.

응용 프로그램 개체는 사용자 수에 관계 사이에서 공유할 수 있도록 설계되었습니다. 따라서 변경할 수 한 번에 한 사용자를 허용하는 능력이 필요하고 다른 사람들이 밖을 잠금하여이 작업을 수행할.

당신은 명시적으로 응용 프로그램 개체에 따라 배치 잠금을 제거하려면 잠금 해제 방법을 사용할 수 있습니다. 완전히 개체를 잠금을 해제하려면, 기억, 당신은 고정 전화를 같은 횟수를 잠금 해제 호출해야합니다. 다행히도, 서버가 자동적으로 오브젝트에 게재된 모든 잠금 장치의 잠금을 해제합니다 언제 스크립트 시간이나. asp 파일이 종료된다.

예제

Code:
<%
Application.Lock
%>

 

댓글