Export (0) Print
Expand All

PrivateObject.Invoke Method (String, Object[])

Used to access the members of the private object.

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

public Object Invoke(
	string name,
	params Object[] args
)

Parameters

name
Type: System.String

The name of the member to invoke.

args
Type: System.Object[]

Any arguments that the member requires.

Return Value

Type: System.Object
An object that represents the return value of a private member.

If the private member does not return a reference or value, then this method will not return an object.

Show:
© 2014 Microsoft