Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets an indexed property for a wrapped object identified by name.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Function GetProperty ( _
name As String, _
bindingFlags As BindingFlags, _
parameterTypes As Type(), _
args As Object() _
) As Object
public Object GetProperty(
string name,
BindingFlags bindingFlags,
Type[] parameterTypes,
Object[] args
)
public:
Object^ GetProperty(
String^ name,
BindingFlags bindingFlags,
array<Type^>^ parameterTypes,
array<Object^>^ args
)
member GetProperty :
name:string *
bindingFlags:BindingFlags *
parameterTypes:Type[] *
args:Object[] -> Object
public function GetProperty(
name : String,
bindingFlags : BindingFlags,
parameterTypes : Type[],
args : Object[]
) : Object
Parameters
name
Type: StringThe name of property to get.
- bindingFlags
Type: BindingFlags
parameterTypes
Type: array<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<Object[]An array that contains the arguments to pass to the member to invoke.
Return Value
Type: Object
An object that contains the value of the property identified by name.
Exceptions
Exception | Condition |
---|---|
ArgumentException | name is nulla null reference (Nothing in Visual Basic) or empty. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.