Class TemporaryKeyValueStorageFile
削除される可能性のあるKeyValueStorageの読み書き削除をするクラス
Inherited Members
Namespace: VRoidSDK.IO
Assembly: VRoidSDK.dll
Syntax
public class TemporaryKeyValueStorageFile : IFileReadWriteDelete, IFileRead, IFileWrite, IFileDelete
Remarks
ファイルはtempディレクトリに保存される
Constructors
TemporaryKeyValueStorageFile(String)
コンストラクタ
Declaration
public TemporaryKeyValueStorageFile(string appPassword)
Parameters
Type | Name | Description |
---|---|---|
String | appPassword | 暗号化に使用するアプリ固有の鍵 |
Methods
Delete(String)
ファイルを削除する
Declaration
public void Delete(string filePath)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | 削除する相対ファイルパス |
IsFileExist(String)
ファイルが存在するかチェックする
Declaration
public bool IsFileExist(string filePath)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | チェックする相対ファイルパス |
Returns
Type | Description |
---|---|
Boolean | ファイルの有無 |
Load(String)
ファイルを読み込む
Declaration
public byte[] Load(string filePath)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | 読み込む相対ファイルパス |
Returns
Type | Description |
---|---|
Byte[] | 読み込んだバイナリ |
Exceptions
Type | Condition |
---|---|
FileNotFoundException | ファイルが存在しない |
CryptographicException | ファイルの復号に失敗 |
Save(String, Byte[])
ファイルを特定の場所に保存する
Declaration
public void Save(string filePath, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | 書き込む相対ファイルパス |
Byte[] | data | 書き込むバイナリ |