An array of type ParameterInfo containing the parameters for the indexes. If the property is not indexed, the array has 0 (zero) elements.
Type Reason MethodAccessException The property reflected by the current instance is visible, but its Get and Set accessors are not, and the caller does not have System.Security.Permissions.ReflectionPermission.
Extract any required parameter information from the returned array.
To use the GetIndexParameters method, first get the class Type. From the Type, get the PropertyInfo. From the PropertyInfo, use the GetIndexParameters method.
Type | Reason |
---|---|
System.Security.Permissions.ReflectionPermission | Requires permission to reflect non-public members of a type in loaded assemblies. See System.Security.Permissions.ReflectionPermissionFlag.TypeInformation. |