Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PrivateObject.SetProperty Method (String, Object, Object[])

Sets a property for a wrapped object identified by name.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public void SetProperty(
	string name,
	Object value,
	params Object[] args
)

Parameters

name
Type: System.String

The name of property to invoke.

value
Type: System.Object

The value to set the property identified by name.

args
Type: System.Object[]

An array that contains the arguments to pass to the property to invoke.

ExceptionCondition
ArgumentException

name is null or empty.

Show:
© 2015 Microsoft