Sets the value of the property reflected by the current instance on the specified object, using the specified index values.
- obj
- The object whose property value is returned. Specify null to invoke a static Set accessor on the property reflected by the current instance.
- value
- A object that contains the new value for the property.
- index
- An array of objects that is an index or values for indexed properties. This value is required to be null for non-indexed properties.
- value
- Documentation for this section has not yet been entered.
- index
- Documentation for this section has not yet been entered.
Type Reason System.Security.Permissions.ReflectionPermission Requires permission to reflect non-public members of a type in loaded assemblies. See System.Security.Permissions.ReflectionPermissionFlag.MemberAccess.
Type Reason ArgumentException index does not contain the exact type of arguments needed.
-or-
The Set accessor of the property reflected by the current instance was not found.
MethodAccessException The Set accessor of the property reflected by the current instance is non-public and the caller does not have System.Security.Permissions.ReflectionPermission to reflect on non-public methods. System.Reflection.TargetException The property reflected by the current instance is non-static, and obj is null or is of a type that does not implement the property reflected by the current instance. System.Reflection.TargetParameterCountException The current instance reflects an indexer and index.Length does not equal the rank of the indexer.
Operation
As described above.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0