共用方式為


PrivateType.GetStaticProperty Method

Include Protected Members
Include Inherited Members

Gets a static property contained in the 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 GetStaticProperty(String, array<Object[]) Gets a static property contained in the wrapped type.
Public method GetStaticProperty(String, BindingFlags, array<Object[]) Gets a static property contained in the wrapped type.
Public method GetStaticProperty(String, BindingFlags, array<Type[], array<Object[]) Gets a static indexed property contained in the wrapped type.

Top

See Also

Reference

PrivateType Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace