共用方式為


PrivateType.GetStaticFieldOrProperty Method

Include Protected Members
Include Inherited Members

Gets a value of a static field or property in a wrapped type.

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

Top

See Also

Reference

PrivateType Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace