Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PrivateObject.SetFieldOrProperty Method (String, Object)

Sets a value of a wrapped field or property based on the name.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
public void SetFieldOrProperty(
	string name,
	Object value


Type: System.String

The name of the private field or property to set.

Type: System.Object

The value to set for name.

Important noteImportant

This is important for Visual Basic source code as fields and properties are used the same way.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.