PrivateObject.SetProperty Method

Include Protected Members
Include Inherited Members

Sets the value of the property of the wrapped object.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method SetProperty(String, Object, array<Object[]) Sets a property for a wrapped object identified by name.
Public method SetProperty(String, BindingFlags, Object, array<Object[]) Sets a property for a wrapped object identified by name with binding flags.
Public method SetProperty(String, array<Type[], Object, array<Object[]) Sets an indexed property for a wrapped object identified by name.
Public method SetProperty(String, BindingFlags, Object, array<Type[], array<Object[]) Sets an indexed property for a wrapped object identified by name.

Top

See Also

Reference

PrivateObject Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace