Export (0) Print
Expand All

PrivateObject.GetFieldOrProperty Method (String)

Gets a value of a wrapped field or property based on the name.

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

public Object GetFieldOrProperty(
	string name
)

Parameters

name
Type: System.String

The name of the private field or property to get.

Return Value

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

Important noteImportant

This is important for Visual Basic source code as fields and properties are used the same way.

Show:
© 2014 Microsoft