BCServiceProviderItem Property |
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: 4.0.0.0 (4.0.111.0)
Syntax public Object this[
Guid key
] { get; set; }
Public Default Property Item (
key As Guid
) As Object
Get
Set
Parameters
- key
- Type: SystemGuid
The key of the value to get or set.
Return Value
Type:
Object
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.
Exceptions Exception | Condition |
---|
KeyNotFoundException |
When an element with the specified key is not present in the collection.
|
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.
See Also