Partager via


PropertyInfo.SetValue Method

Sets the value of an indexed property for a specified object with optional index values.

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)

Syntax

[DebuggerHiddenAttribute]
[DebuggerStepThroughAttribute]
[MethodImplAttribute]
public virtual void SetValue (
         Objectobj,
         Objectvalue,
         Object[] index
)

Parameters

  • obj
    The object whose property value will be set.
  • value
    The new value for the current property.
  • index
    Optional index values for indexed properties. For nonindexed properties, this value should be a null reference.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

PropertyInfo Class
PropertyInfo Members
System.Reflection Namespace