Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Adds the task to the collection.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Private Function Add ( _
obj As Object _
) As Integer Implements IList.Add
'Usage
Dim instance As TaskProvider..::..TaskCollection
Dim obj As Object
Dim returnValue As Integer
returnValue = CType(instance, IList).Add(obj)
int IList.Add(
Object obj
)
private:
virtual int Add(
Object^ obj
) sealed = IList::Add
private abstract Add :
obj:Object -> int
private override Add :
obj:Object -> int
JScript does not support explicit interface implementations.
Parameters
- obj
Type: System.Object
The task object.
Return Value
Type: System.Int32
The index at which the task was added.
Implements
.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.
See Also
Reference
TaskProvider.TaskCollection Class