Export (0) Print
Expand All

PrivateObject.GetProperty Method (String, Object[])

Gets 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 Object GetProperty(
	string name,
	params Object[] args
)

Parameters

name
Type: String

The name of property to get.

args
Type: Object[]

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

Return Value

Type: Object
An object that contains the value of the property identified by name.

ExceptionCondition
ArgumentException

name is null or empty.

Show:
© 2014 Microsoft