SettingsSectionTryGetIndex Method
Provides the implementation for operations that get a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for indexing operations.
Namespace: Gemstone.ConfigurationAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public override bool TryGetIndex(
GetIndexBinder binder,
Object[] indexes,
out Object?? result
)
Public Overrides Function TryGetIndex (
binder As GetIndexBinder,
indexes As Object(),
<OutAttribute> ByRef result As Object
) As Boolean
public:
virtual bool TryGetIndex(
GetIndexBinder^ binder,
array<Object^>^ indexes,
[OutAttribute] Object^% result
) override
function TryGetIndex(binder, indexes, result);
- binder GetIndexBinder
- Provides information about the operation.
- indexes Object
- The indexes that are used in the operation. For example, for the sampleObject[3] operation in C# (sampleObject(3) in Visual Basic), where sampleObject is derived from the DynamicObject class, indexes[0] is equal to 3.
- result Object
- The result of the index operation.
Boolean if the operation is successful; otherwise,
. If this method returns
, the run-time binder of the language determines the behavior. (In most cases, a run-time exception is thrown.)