FileStream.Name プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)


その他の一般的な I/O タスクまたは関連する I/O タスクの例を次の表に示します。
File.AppendText FileInfo.AppendText | |
Path.GetExtension | |
Path.GetFullPath | |
Path.GetFileName | |
GetDirectoryName | |
Path.ChangeExtension |

次のコード例は、FileStream(String,FileMode,FileAccess,FileShare,Int32,Boolean) コンストラクタの例の一部です。
Private Shared Sub EndReadCallback(asyncResult As IAsyncResult) Dim tempState As State = _ DirectCast(asyncResult.AsyncState, State) Dim readCount As Integer = _ tempState.FStream.EndRead(asyncResult) Dim i As Integer = 0 While(i < readCount) If(tempState.ReadArray(i) <> tempState.WriteArray(i)) Console.WriteLine("Error writing data.") tempState.FStream.Close() Return End If i += 1 End While Console.WriteLine("The data was written to {0} and " & _ "verified.", tempState.FStream.Name) tempState.FStream.Close() ' Signal the main thread that the verification is finished. tempState.ManualEvent.Set() End Sub
static void EndReadCallback(IAsyncResult asyncResult) { State tempState = (State)asyncResult.AsyncState; int readCount = tempState.FStream.EndRead(asyncResult); int i = 0; while(i < readCount) { if(tempState.ReadArray[i] != tempState.WriteArray[i++]) { Console.WriteLine("Error writing data."); tempState.FStream.Close(); return; } } Console.WriteLine("The data was written to {0} and verified.", tempState.FStream.Name); tempState.FStream.Close(); // Signal the main thread that the verification is finished. tempState.ManualEvent.Set(); }
static void EndReadCallback( IAsyncResult^ asyncResult ) { State^ tempState = dynamic_cast<State^>(asyncResult->AsyncState); int readCount = tempState->FStream->EndRead( asyncResult ); int i = 0; while ( i < readCount ) { if ( tempState->ReadArray[ i ] != tempState->WriteArray[ i++ ] ) { Console::WriteLine( "Error writing data." ); tempState->FStream->Close(); return; } } Console::WriteLine( "The data was written to {0} " "and verified.", tempState->FStream->Name ); tempState->FStream->Close(); // Signal the main thread that the verification is finished. tempState->ManualEvent->Set(); } public:
static void EndReadCallback(IAsyncResult asyncResult) { State tempState = ((State)(asyncResult.get_AsyncState())); int readCount = tempState.get_FStream().EndRead(asyncResult); int i = 0; while((i < readCount)) { if ( tempState.get_ReadArray()[i] != tempState.get_WriteArray()[i++] ) { Console.WriteLine("Error writing data."); tempState.get_FStream().Close(); return; } } Console.WriteLine("The data was written to {0} and verified.", tempState.get_FStream().get_Name()); tempState.get_FStream().Close(); // Signal the main thread that the verification is finished. tempState.get_ManualEvent().Set(); } //EndReadCallback


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


Weblioに収録されているすべての辞書からFileStream.Name プロパティを検索する場合は、下記のリンクをクリックしてください。

- FileStream.Name プロパティのページへのリンク