Partager via


PrivateObject.Invoke Method

Include Protected Members
Include Inherited Members

Used to access the members of the private object.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Invoke(String, array<Object[]) Used to access the members of the private object.
Public method Invoke(String, array<Object[], CultureInfo) Used to access the members of the private object.
Public method Invoke(String, BindingFlags, array<Object[]) Used to access the members of the private object.
Public method Invoke(String, array<Type[], array<Object[]) Used to access the methods of the private object.
Public method Invoke(String, BindingFlags, array<Object[], CultureInfo) Used to access the members of the private object.
Public method Invoke(String, BindingFlags, array<Type[], array<Object[]) Used to access the members of the private object.
Public method Invoke(String, array<Type[], array<Object[], CultureInfo) Used to access the members of the private object.
Public method Invoke(String, array<Type[], array<Object[], array<Type[]) Used to access generic members of a private object.
Public method Invoke(String, BindingFlags, array<Type[], array<Object[], CultureInfo) Used to access the members of the private object.
Public method Invoke(String, BindingFlags, array<Type[], array<Object[], CultureInfo, array<Type[]) Used to access generic members of a private object.

Top

See Also

Reference

PrivateObject Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace