Export (0) Print
Expand All

PrivateType.GetStaticField Method (String, BindingFlags)

Gets a static field contained in the wrapped type.

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

public Object GetStaticField(
	string name,
	BindingFlags bindingFlags
)

Parameters

name
Type: System.String

The name of the static field.

bindingFlags
Type: System.Reflection.BindingFlags

Return Value

Type: System.Object
An object that represents the value of the static field.

Show:
© 2014 Microsoft