Note
If a matching indexed property could be found and the invocation itself has thrown an exception, then this method also throws an exception instead of returning .
public static bool TryGetIndexedMember(
Object instance,
out Object?? value,
params Object?[] indexParameters
)
Public Shared Function TryGetIndexedMember (
instance As Object,
<OutAttribute> ByRef value As Object,
ParamArray indexParameters As Object()
) As Boolean
public:
static bool TryGetIndexedMember(
Object^ instance,
[OutAttribute] Object^% value,
... array<Object^>^ indexParameters
)
static member TryGetIndexedMember :
instance : Object *
value : Object byref *
indexParameters : Object[] -> bool
This method ignores explicitly implemented interface properties.
If you already have a PropertyInfo instance of the indexed property, then use the GetProperty(Object, PropertyInfo, ReflectionWays, Object) method for better performance.
For getting an indexed property this method uses the DynamicDelegate reflection way.