當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


ASP Dictionary.RemoveAll用法及代碼示例

GeeksforGeeks - Summer Carnival Banner

ASP Dictionary.RemoveAll方法用於從字典對象中刪除所有鍵-值對。

用法:

DictionaryObject.RemoveAll 

示例代碼:下麵的代碼演示了ASP Dictionary.RemoveAll方法。

ASP

<%dim d,a,iset d=Server.CreateObject("Scripting.Dictionary")d.Add "m","mango"d.Add "n","naman"d.Add "b",""banana>")next  set d=nothing%>

輸出:

Key values:

(nothing)

相關用法


注:本文由純淨天空篩選整理自ManasChhabra2大神的英文原創作品 ASP Dictionary.RemoveAll Method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。