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::GetProperty Method (String^, BindingFlags, array<Object^>^)
Gets a property for a wrapped object identified by name with binding flags.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
public: Object^ GetProperty( String^ name, BindingFlags bindingFlags, ... array<Object^>^ args )
Parameters
- name
-
Type:
System::String^
The name of property to get.
- 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 GetProperty. If null is used, the default value is passed. Additional flags will be added to the mask.
- args
-
Type:
array<System::Object^>^
An array that contains the arguments to pass to the member to invoke.
Return Value
Type: System::Object^An object that contains the value of the property identified by name.
| Exception | Condition |
|---|---|
| ArgumentException | name is null or empty. |
Show: