Contents.Remove

ASP Contents.Remove metodi


❮ Session obyektining to‘liq ma’lumotnomasi

Contents.Remove metodi Contents kolleksiyasidan elementni o‘chiradi.

Sintaksis

Application.Contents.Remove(name|index) Session.Contents.Remove(name|index)

Parametr Tavsif
name O‘chiriladigan elementning nomi
index O‘chiriladigan elementning indeksi

Application obyekti uchun misollar

1-misol

<% Application("test1")=("First test") Application("test2")=("Second test") Application("test3")=("Third test") Application.Contents.Remove("test2") for each x in Application.Contents   Response.Write(x & "=" & Application.Contents(x) & "<br>") next %> Output: test1=First test test3=Third test

2-misol

<% Application("test1")=("First test") Application("test2")=("Second test") Application("test3")=("Third test") Application.Contents.Remove(2) for each x in Application.Contents   Response.Write(x & "=" & Application.Contents(x) & "<br>") next %> Output: test1=First test test3=Third test


Session obyekti uchun misollar

1-misol

<% Session("test1")=("First test") Session("test2")=("Second test") Session("test3")=("Third test") Session.Contents.Remove("test2") for each x in Session.Contents   Response.Write(x & "=" & Session.Contents(x) & "<br>") next %> Output: test1=First test test3=Third test

2-misol

<% Session("test1")=("First test") Session("test2")=("Second test") Session("test3")=("Third test") Session.Contents.Remove(2) for each x in Session.Contents   Response.Write(x & "=" & Session.Contents(x) & "<br>") next %> Output: test1=First test test3=Third test

❮ Session obyektining to‘liq ma’lumotnomasi

W3Schools Pathfinder

Yutuqlaringizni kuzating – bu bepul!