HttpSessionState.Contents Property
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.
Gets a reference to the current session-state object.
public:
property System::Web::SessionState::HttpSessionState ^ Contents { System::Web::SessionState::HttpSessionState ^ get(); };
public System.Web.SessionState.HttpSessionState Contents { get; }
member this.Contents : System.Web.SessionState.HttpSessionState
Public ReadOnly Property Contents As HttpSessionState
Property Value
The current HttpSessionState.
Examples
The following code example lists the item names and values in the Contents property.
foreach (string s in Session.Contents)
Response.Write(s + " = " + Session[s].ToString() + "<br />");
For Each s As String In Session.Contents
Response.Write(String.Format("{0} = {1}<br />", s, Session(s)))
Next
Remarks
The Contents property is provided for compatibility with earlier versions of ASP.
Applies to
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.