The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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


Type: System.String

The name of the member to invoke.

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.

Return to top