Export (0) Print
Expand All

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.

Important noteImportant

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

Show:
© 2015 Microsoft