Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PrivateObject.GetField Method (String)

Gets a value from a named field, based on the name.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public Object GetField(
	string name
)

Parameters

name
Type: System.String

The name of the private field to get.

Return Value

Type: System.Object
The value set for the name field.

ExceptionCondition
ArgumentException

name is null or empty.

Show:
© 2015 Microsoft