BCServiceProviderItem Property |
Gets or sets the value associated with the specified key.
Namespace: BlueCieloECM.InnoCielo.Meridian.ClientAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.19.0)
Syntaxpublic Object this[
Guid key
] { get; set; }
Public Default Property Item (
key As Guid
) As Object
Get
Set
public:
property Object^ default[Guid key] {
Object^ get (Guid key);
void set (Guid key, Object^ value);
}
member Item : Object with 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.
ExceptionsException | 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