IsolatedStorageFile.CurrentSize プロパティ

定義

注意事項

IsolatedStorageFile.CurrentSize has been deprecated because it is not CLS Compliant. To get the current size use IsolatedStorageFile.UsedSize

重要

この API は CLS 準拠ではありません。

分離ストレージの現在のサイズを取得します。

public:
 virtual property System::UInt64 CurrentSize { System::UInt64 get(); };
[System.CLSCompliant(false)]
public override ulong CurrentSize { get; }
[System.CLSCompliant(false)]
[System.Obsolete("IsolatedStorageFile.CurrentSize has been deprecated because it is not CLS Compliant.  To get the current size use IsolatedStorageFile.UsedSize")]
public override ulong CurrentSize { get; }
[<System.CLSCompliant(false)>]
member this.CurrentSize : uint64
[<System.CLSCompliant(false)>]
[<System.Obsolete("IsolatedStorageFile.CurrentSize has been deprecated because it is not CLS Compliant.  To get the current size use IsolatedStorageFile.UsedSize")>]
member this.CurrentSize : uint64
Public Overrides ReadOnly Property CurrentSize As ULong

プロパティ値

分離ストレージ スコープ内で現在使用されているストレージの合計バイト数。

属性

例外

このプロパティは使用できません。 現在のストアがローミング スコープを持っているか、開いていません。

現在のオブジェクト サイズは未定義です。

注釈

分離ストレージ スコープ内のすべてのファイルとディレクトリの合計使用量を表します。

ローミング ユーザー プロファイルに参加しているストアでは、現在のサイズを正確に決定できません。 ローミング プロファイルは多くの場合、複数のクライアント コンピューターにキャッシュされ、後でサーバーと同期されるため、このようなストアにクォータを適用できず、現在のサイズは報告されません。

方法: 分離ストレージを使用して領域不足状態を予測する例では、CurrentSize プロパティの使用方法を示します。

適用対象

こちらもご覧ください