PrivateObject.GetField Method (String, BindingFlags)
Visual Studio 2012
Gets a value from a named field, based on the name and lookup mask.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Exception | Condition |
|---|---|
| ArgumentException | name is null or empty. |
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.