Export (0) Print
Expand All

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

Sets an indexed 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,
	Type[] parameterTypes,
	Object value,
	Object[] args
)

Parameters

name
Type: String

The name of property to invoke.

parameterTypes
Type: Type[]

An array of Type objects that represents the number, order, and type of the parameters for the indexed property to get.

value
Type: Object

The value to set the property identified by name.

args
Type: Object[]

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

ExceptionCondition
ArgumentException

name is null or empty.

Show:
© 2015 Microsoft