Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PrivateType.GetStaticFieldOrProperty Method (String, BindingFlags)

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

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
public Object GetStaticFieldOrProperty(
	string name,
	BindingFlags bindingFlags
)

Parameters

name
Type: System.String

The name of the static field or property to get.

bindingFlags
Type: System.Reflection.BindingFlags

Return Value

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

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.