[This is preliminary documentation and is subject to change.]
Namespace: ContentStudio.EventActions
Assembly: CS5Interfaces (in CS5Interfaces.dll) Version: 1.0.0.0 (1.0.0.0)
Parameters
- name
- Type: SystemString
The name of the field to get or set.
Property Value
Type: Stringthe field with the specified name
Exception | Condition |
---|---|
ArgumentNullException | Either the name or value are null. |
KeyNotFoundException | The property is retrieved and name is not an existing field. |
This property provides the ability to access a specific element in the collection by using the following syntax: eptFieldCollection[name] (eptFieldCollection(name) in Visual Basic).
You can also use the ItemString property to add new elements by setting the value of a key that does not exist in the dictionary; for example,
eptFieldCollection["theNewFieldName"]
eptFieldCollection("theNewFieldName")
If you like to set a value to a field only if it exists you can use the TrySetValue(String, String) method instead.