Gets or sets the task at the given index.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Default Property Item ( _
index As Integer _
) As Task
'使用
Dim instance As TaskProvider..::.TaskCollection
Dim index As Integer
Dim value As Task
value = instance(index)
instance(index) = value
public Task this[
int index
] { get; set; }
public:
property Task^ default[int index] {
Task^ get (int index);
void set (int index, Task^ value);
}
JScript does not support indexed properties.
Parameters
index
Type: System.Int32The index of the task.
Property Value
Type: Microsoft.VisualStudio.Shell.Task
Task.
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.
See Also
Reference
TaskProvider.TaskCollection Class