Session.Contents.RemoveAll Method
RemoveAll方法删除了所有已经添加到Session对象的Contents集合中的项。
Contents.RemoveAll()
参数
该方法没有参数。
返回值
该方法没有返回值
示例代码
下面的示例删除的已经被添加到Session.Contents集合中的所有项:
<%Session.Contents.RemoveAll()%>
适用于
必备条件
Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Product: IIS