Namespace: Microsoft.VisualStudio.TestTools.Common
Assembly: Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'宣言
Public ReadOnly Default Property Item ( _
outcome As TestOutcome _
) As Integer
'使用
Dim instance As RunResultAndStatistics
Dim outcome As TestOutcome
Dim value As Integer
value = instance(outcome)
public int this[
TestOutcome outcome
] { get; }
public:
property int default[TestOutcome outcome] {
int get (TestOutcome outcome);
}
JScript does not support indexed properties.
Parameters
- outcome
Type: Microsoft.VisualStudio.TestTools.Common.TestOutcome
Property Value
Type: System.Int32
Permissions
- 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.