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