共用方式為


SPAdministrationWebApplication.AddAdministrativeTask Method

NOTE: This API is now obsolete.

Adds an item to the administration Tasks list.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("The admin task list is obsolete.", False)> _
Public Function AddAdministrativeTask ( _
    title As String, _
    description As String, _
    priority As Integer, _
    actionTitle As String, _
    actionUrl As String _
) As SPListItem
'Usage
Dim instance As SPAdministrationWebApplication
Dim title As String
Dim description As String
Dim priority As Integer
Dim actionTitle As String
Dim actionUrl As String
Dim returnValue As SPListItem

returnValue = instance.AddAdministrativeTask(title, _
    description, priority, actionTitle, _
    actionUrl)
[ObsoleteAttribute("The admin task list is obsolete.", false)]
public SPListItem AddAdministrativeTask(
    string title,
    string description,
    int priority,
    string actionTitle,
    string actionUrl
)

Parameters

  • title
    Type: System.String

    A string that contains the title of the item.

  • description
    Type: System.String

    A string that contains a description for the new item.

  • priority
    Type: System.Int32

    A 32-bit integer that specifies the priority of the new task item.

  • actionTitle
    Type: System.String

    A string that contains the descriptive text for the link to the item.

  • actionUrl
    Type: System.String

    A string that contains the URL for the link to the item.

Return Value

Type: Microsoft.SharePoint.SPListItem
An SPListItem object that represents the new item.

See Also

Reference

SPAdministrationWebApplication Class

SPAdministrationWebApplication Members

Microsoft.SharePoint.Administration Namespace