Item Property

MS Activities Extensions

Collapse imageExpand ImageCopy imageCopyHover image
Gets or sets the element with the specified key.

Namespace: Microsoft.Activities.Extensions
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)

Syntax

C#
public Object this[
	string key
] { get; set; }
Visual Basic
Public Default Property Item ( _
	key As String _
) As Object
	Get
	Set
Visual C++
public:
virtual property Object^ default[String^ key] {
	Object^ get (String^ key) sealed;
	void set (String^ key, Object^ value) sealed;
}

Parameters

key
Type: System..::..String
The key of the element to get or set.

Return Value

The element with the specified key.

Implements

IDictionary<(Of <(<'TKey, TValue>)>)>..::..Item[([( TKey])])

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionkey is null.
System.Collections.Generic..::..KeyNotFoundExceptionThe property is retrieved and key is not found.
System..::..NotSupportedExceptionThe property is set and the IDictionary<(Of <(<'TKey, TValue>)>)> is read-only.

See Also