共用方式為


PrivateObject.GetFieldOrProperty Method

Include Protected Members
Include Inherited Members

Gets a value of a wrapped field or property.

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 GetFieldOrProperty(String) Gets a value of a wrapped field or property based on the name.
Public method GetFieldOrProperty(String, BindingFlags) Gets a value of a wrapped field or property based on the name.

Top

See Also

Reference

PrivateObject Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace