2010-04-16 2 views
0

Silverlight는 IsolatedStorageFileStream을 사용하여 파일을 엽니 다.IsolatedStorageFileStream.Lock은 SIlverlight4에서 작동합니까?

IsolatedStorageFileStreamunder NET.4는 VS2010 및 실버 4

아래

다음 코드

IsolatedStorageFile isf; 
IsolatedStorageFileStream lockStream = new IsolatedStorageFileStream("my.lck", FileMode.OpenOrCreate, isf); 
lockStream.Lock(0, 0); 

이 쉽도록 다음과 같은 오류가 발생 (하여 FileStream에서 속됨) Lock Method를 지원한다고 주장

'System.IO.IsolatedStorage.IsolatedStorageFileStream' does not contain a definition for 'Lock' 
and no extension method 'Lock' accepting a first argument of type 'System.IO.IsolatedStorage.IsolatedStorageFileStream' could be found 
(are you missing a using directive or an assembly reference?) 

답변

0

LockUnlock은 실제로 지원되지 않지만 o System.IO.FileStream 클래스는 프레임 워크간에 일관성이 있으며 향후이 기능을 구현할 수 있습니다.