DynamicArrayInstance.TrySetIndex Method
Provides the implementation for operations that set a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that access objects by a specified index.
Namespace: TwinCAT.TypeSystem
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 6.0.328+39e3229
Syntax
C#
public override bool TrySetIndex(
SetIndexBinder binder,
Object[] indexes,
Object? value
)
Parameters
binder |
Type: System.Dynamic.SetIndexBinder |
indexes |
Type: .System.Object. |
value |
Type: System.Object |
Return Value
Type: Boolean
true if the operation is successful; otherwise, false. If this
method returns false, the run-time binder of the language
determines the behavior. (In most cases, a language-specific
run-time exception is thrown.