Partager via


PrivateObject.SetField Method

Include Protected Members
Include Inherited Members

Sets the value of the field 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 SetField(String, Object) Sets a value for the field of the wrapped object, identified by name.
Public method SetField(String, BindingFlags, Object) Sets a value for the field of the wrapped object, identified by name.

Top

See Also

Reference

PrivateObject Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace