DynamicScriptObject::TrySetIndex Method (SetIndexBinder^, array<Object^>^, Object^)
This API supports the product infrastructure and is not intended to be used directly from your code.
Sets a member on the script object by using the first index specified in the indexes collection.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: virtual bool TrySetIndex( SetIndexBinder^ binder, array<Object^>^ indexes, Object^ value ) override
Parameters
- binder
-
Type:
System.Dynamic::SetIndexBinder^
The binder provided by the call site.
- indexes
-
Type:
array<System::Object^>^
The index to be retrieved.
- value
-
Type:
System::Object^
The method result
| Exception | Condition |
|---|---|
| ArgumentNullException | binder is null. -or- indexes is null. |
| ArgumentException | The length of indexes is not equal to 1. |
| ArgumentOutOfRangeException | The first indexes value is null. |
| MissingMemberException | The member does not exist. |
The TrySetIndex method throws an exception if an invalid access is attempted.
Available since 4.0