HttpSessionStateBase::Item Property (String^)

 

When overridden in a derived class, gets or sets a session value by using the specified name.

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

public:
property Object^ default[
	String^ name
] {
	virtual Object^ get(String^ name);
	virtual 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 that has the specified name, or null if the item does not exist.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: