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.

PrivateObject::SetFieldOrProperty Method (String^, Object^)

 

Sets a value of a wrapped field or property based on the name.

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

public:
void SetFieldOrProperty(
	String^ name,
	Object^ value
)

Parameters

name
Type: System::String^

The name of the private field or property to set.

value
Type: System::Object^

The value to set for name.

System_CAPS_importantImportant

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

Return to top
Show: