HttpSessionState::Item Property (String^)

 

Gets or sets a session value by name.

Namespace:   System.Web.SessionState
Assembly:  System.Web (in System.Web.dll)

public:
property Object^ default[
	String^ name
] {
	Object^ get(String^ name);
	void set(String^ name, Object^ value);
}

Parameters

name
Type: System::String^

The key name of the session value.

Property Value

Type: System::Object^

The session-state value with the specified name, or null if the item does not exist.

.NET Framework
Available since 1.1
Return to top
Show: