IsolatedStorageFile.CurrentSize プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)
構文[CLSCompliantAttribute(false)] public: virtual property usigned long long CurrentSize { usigned long long get () override; }
分離ストレージのスコープ内で現在使用されているストレージの合計バイト数。
例外
解説分離ストレージのスコープ内にあるすべてのファイルとディレクトリによるストレージ使用率の合計を表します。
ローミング ユーザー プロファイルに関連しているストアについては、現在のサイズを正確には確認できません。ローミング プロファイルは、複数のクライアント コンピュータでキャッシュに保存され、後からサーバーと同期されることが多いため、このようなストアにはクォータを強制的に適用できません。また、現在のサイズもレポートされません。
使用例CurrentSize プロパティのコード例を次に示します。この例のコンテキスト全体については、IsolatedStorageFile の概要を参照してください。
Dim writer As New StreamWriter(isoStream) ' Update the data based on the new inputs. writer.WriteLine(Me.NewsUrl) writer.WriteLine(Me.SportsUrl) ' Calculate the amount of space used to record this user's preferences. Dim d As Double = Convert.ToDouble(isoFile.CurrentSize) / Convert.ToDouble(isoFile.MaximumSize) Console.WriteLine(("CurrentSize = " & isoFile.CurrentSize.ToString())) Console.WriteLine(("MaximumSize = " & isoFile.MaximumSize.ToString()))
StreamWriter writer = new StreamWriter(isoStream); // Update the data based on the new inputs. writer.WriteLine(this.NewsUrl); writer.WriteLine(this.SportsUrl); // Calculate the amount of space used to record this user's preferences. double d = isoFile.CurrentSize / isoFile.MaximumSize; Console.WriteLine("CurrentSize = " + isoFile.CurrentSize.ToString()); Console.WriteLine("MaximumSize = " + isoFile.MaximumSize.ToString());
StreamWriter^ writer = gcnew StreamWriter( isoStream ); // Update the data based on the new inputs. writer->WriteLine( this->NewsUrl ); writer->WriteLine( this->SportsUrl ); // Calculate the amount of space used to record this user's preferences. double d = isoFile->CurrentSize / isoFile->MaximumSize; Console::WriteLine( "CurrentSize = {0}", isoFile->CurrentSize.ToString() ); Console::WriteLine( "MaximumSize = {0}", isoFile->MaximumSize.ToString() );
プラットフォーム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に収録されているすべての辞書からIsolatedStorageFile.CurrentSize プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からIsolatedStorageFile.CurrentSize プロパティ
を検索
- IsolatedStorageFile.CurrentSize プロパティのページへのリンク