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.Invoke Method (String, Object[], CultureInfo)

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,
	Object[] args,
	CultureInfo culture
)

Parameters

name
Type: System.String

The name of the member to invoke.

args
Type: System.Object[]

Any arguments that the member requires.

culture
Type: System.Globalization.CultureInfo

The CultureInfo object that represents the globalization locale to use, which might be necessary for locale-specific conversions, such as converting a numeric String to a Double.

-or-

null to use the current thread's CultureInfo.

Return Value

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

Show:
© 2015 Microsoft