共用方式為


UserTasksWebPart Class

Displays the tasks assigned to a particular user.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.WebPartPages.AggregationWebPart
                Microsoft.SharePoint.WebPartPages.UserTasksWebPart

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class UserTasksWebPart _
    Inherits AggregationWebPart
'Usage
Dim instance As UserTasksWebPart
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class UserTasksWebPart : AggregationWebPart

Remarks

By default the current user is the user who is browsing to the page. If the query string parameter "AggrUserId" is set to a number, then the web part will query for tasks assigned to the user with that id.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

UserTasksWebPart Members

Microsoft.SharePoint.WebPartPages Namespace