FileStream.Unlock メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As FileStream Dim position As Long Dim length As Long instance.Unlock(position, length)


その他の一般的な I/O タスクまたは関連する I/O タスクの例を次の表に示します。
File.AppendText FileInfo.AppendText | |
File.Move FileInfo.MoveTo | |
File.Copy FileInfo.CopyTo | |
FileInfo.Length | |
File.GetAttributes | |
File.SetAttributes | |
CreateSubdirectory | |
GetFileSystemInfos |

' Unlock the specified part of the file. Case "U"C Try aFileStream.Unlock( _ textLength - 1, byteCount) Console.WriteLine("The specified part " & _ "of file has been unlocked.") Catch ex As IOException Console.WriteLine( _ "{0}: The specified part of file " & _ "is not locked by the current " & _ "process.", ex.GetType().Name) End Try Exit Select
// Unlock the specified part of the file. case 'U': try { fileStream.Unlock( textLength - 1, byteCount); Console.WriteLine("The specified part " + "of file has been unlocked."); } catch(IOException e) { Console.WriteLine( "{0}: The specified part of file is " + "not locked by the current process.", e.GetType().Name); } break;
// Unlock the specified part of the file. case 'U': try { fileStream->Unlock( textLength - 1, byteCount ); Console::WriteLine( "The specified part " "of file has been unlocked." ); } catch ( IOException^ e ) { Console::WriteLine( "{0}: The specified part of file is " "not locked by the current process.", e->GetType()->Name ); } break; default:
// Unlock the specified part of the file. case 'U' : try { fileStream.Unlock(textLength - 1, byteCount); Console.WriteLine(("The specified part " + "of file has been unlocked.")); } catch(IOException e) { Console.WriteLine( "{0}: The specified part of file is " + "not locked by the current process.", e.GetType().get_Name()); } break;

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からFileStream.Unlock メソッドを検索する場合は、下記のリンクをクリックしてください。

- FileStream.Unlock メソッドのページへのリンク