IHttpSessionState.RemoveAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clears all values from the session-state item collection.
public:
void RemoveAll();
public void RemoveAll ();
abstract member RemoveAll : unit -> unit
Public Sub RemoveAll ()
Examples
The following code example implements the RemoveAll method of the IHttpSessionState interface to delete all items from an internal session-state item collection.
public void Clear()
{
pSessionItems.Clear();
}
public void RemoveAll()
{
Clear();
}
Public Sub Clear() Implements IHttpSessionState.Clear
pSessionItems.Clear()
End Sub
Public Sub RemoveAll() Implements IHttpSessionState.RemoveAll
Clear()
End Sub
Remarks
RemoveAll performs the same function as Clear.
Applies to
See also
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.