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

PrivateObject.SetField Method (String, Object)

Sets a value for the field of the wrapped object, identified by name.

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

Parameters

name
Type: System.String

The name of the field to set a value.

value
Type: System.Object

The value to set.

ExceptionCondition
ArgumentException

name is null or empty.

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