Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PrivateType.SetStaticFieldOrProperty Method (String, Object)

 

Sets a static field or property contained in the wrapped type.

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

public void SetStaticFieldOrProperty(
	string name,
	object value
)

Parameters

name
Type: System.String

The name of the static field or property.

value
Type: System.Object

The value to set to the static field or property.

System_CAPS_importantImportant

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

Return to top
Show: