共用方式為


PrivateObject.GetProperty Method

Include Protected Members
Include Inherited Members

Gets the value of the property of the wrapped 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 GetProperty(String, array<Object[]) Gets a property for a wrapped object identified by name.
Public method GetProperty(String, BindingFlags, array<Object[]) Gets a property for a wrapped object identified by name with binding flags.
Public method GetProperty(String, array<Type[], array<Object[]) Gets a property for a wrapped object identified by name.
Public method GetProperty(String, BindingFlags, array<Type[], array<Object[]) Gets an indexed property for a wrapped object identified by name.

Top

See Also

Reference

PrivateObject Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace