HttpSessionStateWrapper::Item Property (String^)

 

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) override;
	virtual void set(String^ name, Object^ value) override;
}

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.

.NET Framework
Available since 3.5
Return to top
Show: