Share via


ModelItemDictionary.Item Property (Object)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the item at the specified key.

Namespace:  System.Activities.Design.Model
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)

Syntax

'Declaration
Public MustOverride Property Item ( _
    key As Object _
) As ModelItem
    Get
    Set
'Usage
Dim instance As ModelItemDictionary
Dim key As Object
Dim value As ModelItem

value = instance.Item(key)

instance.Item(key) = value
public abstract ModelItem this[
    Object key
] { get; set; }
public:
virtual property ModelItem^ Item[Object^ key] {
    ModelItem^ get (Object^ key) abstract;
    void set (Object^ key, ModelItem^ value) abstract;
}
JScript does not support indexed properties.
abstract Item : ModelItem with get, set

Parameters

Property Value

Type: System.Activities.Design.Model.ModelItem
Returns ModelItem.

Exceptions

Exception Condition
ArgumentNullException

If key or the value is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

If the dictionary is read-only and you set a new value.

KeyNotFoundException

If key is not in the dictionary.

Remarks

If there is no item for the given key, this method returns nulla null reference (Nothing in Visual Basic).

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

ModelItemDictionary Class

ModelItemDictionary Members

Item Overload

System.Activities.Design.Model Namespace