Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetStaticField Method (String, Object)

PrivateType.SetStaticField Method (String, Object)

Sets 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 void SetStaticField(
	string name,
	Object value
)

Parameters

name
Type: System.String

The name of the static field.

value
Type: System.Object

The value to set to the static field.

Show:
© 2015 Microsoft