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::SetProperty Method (String^, BindingFlags, Object^, array<Type^>^, array<Object^>^)
Sets an indexed property for a wrapped object identified by name.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
public: void SetProperty( String^ name, BindingFlags bindingFlags, Object^ value, array<Type^>^ parameterTypes, array<Object^>^ args )
Parameters
- name
-
Type:
System::String^
The name of property to invoke.
- invokeAttr
A bitmask comprised of one or more BindingFlags that specifies how the search for the property is conducted. The type of lookup need not be specified. The default value is SetProperty. If null is used, the default value is passed. Additional flags will be added to the mask.
- value
-
Type:
System::Object^
The value to set the property identified by name.
- parameterTypes
-
Type:
array<System::Type^>^
An array of Type objects that represents the number, order, and type of the parameters for the indexed property to get.
- args
-
Type:
array<System::Object^>^
An array that contains the arguments to pass to the property to invoke.
| Exception | Condition |
|---|---|
| ArgumentException | name is null or empty. |
Show: