public PropertyValue this[ int index ]; {get; set;}
public: property PropertyValue^ default [int] { PropertyValue^ get(int index); void set (int index, PropertyValue^ value); }
Parameters
- index
public PropertyValue this[ int index ]; {get; set;}
public: property PropertyValue^ default [int] { PropertyValue^ get(int index); void set (int index, PropertyValue^ value); }
| Exception | Description |
|---|---|
| InvalidIndexException | InvalidIndexException |
| NotIndexedPropertyException | NotIndexedPropertyException |
| IndexedPropertyException | IndexedPropertyException |
| System.InvalidOperationException | Is thrown when set is used on a transient property. |
Function function = page.Functions[0]; // A valid Function object PropertyValue propertyValue = function.Properties.FUNC_CONNECTIONDESIGNATION; if(propertyValue.Definition.IsIndexed && propertyValue.Definition.MaxIndex >= 2) { // We will let the variable propertyElement point to an indexed property, so an index is needed to get the logical value. PropertyValue propertyElement = propertyValue[1]; // Now propertyElement points to the first index of the FUNC_CONNECTIONDESIGNATION property string sProperty = propertyElement.ToString(); }