Share via


(Guid, DateTime, Guid, Guid, Guid, Int32, Boolean, Guid, Guid, Int32, Byte[], String, Guid) del método SPSite.AddWorkItem

Adds a work item to the site collection.

Espacio de nombres:  Microsoft.SharePoint
Ensamblado:  Microsoft.SharePoint (en Microsoft.SharePoint.dll)

Sintaxis

'Declaración
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Function AddWorkItem ( _
    gWorkItemId As Guid, _
    schdDateTime As DateTime, _
    gWorkItemType As Guid, _
    gWebId As Guid, _
    gParentId As Guid, _
    nItemId As Integer, _
    fSetWebId As Boolean, _
    gItemGuid As Guid, _
    gBatchId As Guid, _
    nUserId As Integer, _
    rgbBinaryPayload As Byte(), _
    strTextPayload As String, _
    gProcessingId As Guid _
) As Guid
'Uso
Dim instance As SPSite
Dim gWorkItemId As Guid
Dim schdDateTime As DateTime
Dim gWorkItemType As Guid
Dim gWebId As Guid
Dim gParentId As Guid
Dim nItemId As Integer
Dim fSetWebId As Boolean
Dim gItemGuid As Guid
Dim gBatchId As Guid
Dim nUserId As Integer
Dim rgbBinaryPayload As Byte()
Dim strTextPayload As String
Dim gProcessingId As Guid
Dim returnValue As Guid

returnValue = instance.AddWorkItem(gWorkItemId, _
    schdDateTime, gWorkItemType, gWebId, _
    gParentId, nItemId, fSetWebId, gItemGuid, _
    gBatchId, nUserId, rgbBinaryPayload, _
    strTextPayload, gProcessingId)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public Guid AddWorkItem(
    Guid gWorkItemId,
    DateTime schdDateTime,
    Guid gWorkItemType,
    Guid gWebId,
    Guid gParentId,
    int nItemId,
    bool fSetWebId,
    Guid gItemGuid,
    Guid gBatchId,
    int nUserId,
    byte[] rgbBinaryPayload,
    string strTextPayload,
    Guid gProcessingId
)

Parámetros

  • gWorkItemId
    Tipo: System.Guid

    A GUID that identifies the work item.

  • schdDateTime
    Tipo: System.DateTime

    A System.DateTime object that represents the date and time at which the work item takes place.

  • gWorkItemType
    Tipo: System.Guid

    A GUID that specifies the work item type.

  • gWebId
    Tipo: System.Guid

    A GUID that specifies the Web site that is associated with the work item.

  • gParentId
    Tipo: System.Guid

    A GUID that identifies the parent of the work item.

  • nItemId
    Tipo: System.Int32

    A 32-bit integer that identifies a list item that is associated with the work item.

  • fSetWebId
    Tipo: System.Boolean

    true to set the Web identifier; otherwise, false.

  • gItemGuid
    Tipo: System.Guid

    A GUID that specifies a list item that is associated with the work item.

  • gBatchId
    Tipo: System.Guid

    A GUID that specifies a context identifier for the job work item engine. The value can vary depending on the job type; for example, for alerts it might store a user ID but for workflow it would store a workflow ID.

  • nUserId
    Tipo: System.Int32

    A 32-bit integer index that identifies an SPUser object that represents the user who is responsible for scheduling the work item.

  • rgbBinaryPayload
    Tipo: []

    A byte array that specifies a binary payload.

  • strTextPayload
    Tipo: System.String

    A string that specifies a text payload.

  • gProcessingId
    Tipo: System.Guid

    A GUID that identifies the processing of the work item.

Valor devuelto

Tipo: System.Guid
A GUID that identifies the work item.

Comentarios

The work item that is created through the AddWorkItem method is a schedule-job work item; its information can be accessed through the SPWorkItem class.

Vea también

Referencia

clase SPSite

Miembros SPSite

Sobrecarga AddWorkItem

Espacio de nombres Microsoft.SharePoint