ASP@Workshop 
HOME > ASPリファレンス > Session オブジェクト > Contents.Remove

Contents.Remove (Session オブジェクト)

Session.Contents.Remove( key )
Session.Contents.Remove( index )

引数

key
削除するSessionのキーです。文字列を指定します。
index
削除するSessionのインデックスです。整数を指定します。

解説

Contents コレクションから項目を削除します。

使用例

Session.Contents("key1") = "値1"
Session.Contents.Remove("key1")  ' セッションのkey1を削除


関連項目

ContentsStaticObjectsSessionIDTimeoutAbandonContents.RemoveAllSession_OnEnd
Session_OnStart



ASPリファレンス

Application オブジェクト
ASPError オブジェクト
Request オブジェクト
Response オブジェクト
Server オブジェクト
Session オブジェクト
ObjectContext オブジェクト


Copyright (C) 2006-2008 ASP@Workshop All rights reserved.