Share via


PrivateObject.SetFieldOrProperty Method

Include Protected Members
Include Inherited Members

Sets a value of a wrapped field or property.

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 SetFieldOrProperty(String, Object) Sets a value of a wrapped field or property based on the name.
Public method SetFieldOrProperty(String, BindingFlags, Object) Sets a value of a wrapped field or property based on the name.

Top

See Also

Reference

PrivateObject Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace