Gets or sets the value associated with the specified key.

Namespace: BlueCieloECM.InnoCielo.Meridian.Client
Assembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.40.0)

Syntax

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

Parameters

key
Type: System..::..Guid
The key of the value to get or set.

Return Value

The value associated with the specified key. If the specified key is not found, a get operation throws a KeyNotFoundException, and a set operation creates a new element with the specified key.

Remarks

This property provides the ability to access a specific element in the collection. You can also use the property to add new elements by setting the value of a key that does not exist in the context. When you set the property value, if the key is in the context, the value associated with that key is replaced by the assigned value. If the key is not in the BCServiceProvider, the key and value are added to the dictionary. In contrast, the Add method does not modify existing elements.

Exceptions

ExceptionCondition
System.Collections.Generic..::..KeyNotFoundException When an element with the specified key is not present in the collection.

See Also