Share via


State.Item Property

Gets and sets the value of an element in the state.

Namespace: Microsoft.Practices.CompositeUI
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public Default Property Item ( _
    key As String _
) As Object
'Usage
Dim instance As State
Dim key As String
Dim value As Object

value = instance(key)

instance(key) = value
public Object this [
    string key
] { get; set; }
public:
property Object^ default [String^] {
    Object^ get (String^ key);
    void set (String^ key, Object^ value);
}
/** @property */
public Object get_Item (String key)

/** @property */
public void set_Item (String key, Object value)
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • key

See Also

Reference

State Class
State Members
Microsoft.Practices.CompositeUI Namespace