ページの先頭行へ戻る
Interstage Mobile Application Server V1.3.0 アプリケーション開発ガイド
FUJITSU Software

3.5.4.3 データの削除、データ数およびキーの取得

SLSのAPIでは、格納されたデータの削除やキーを取得できます。以下は認証レスモードの例です。

使用例
    try
    {
        DataManagerModeLessDirect dm = new DataManagerModeLessDirect();
        int count = dm.getListLength(true);
        for (int i=count-1; i >= 0; i--)
        {
            string key = dm.getKeyFromIndex(i);
            dm.remove(key);
        }
    }
    catch (IMAPSSlsException e)
    {
        // 例外処理
    }