WorkflowActivities.CreateProjectFromListItem-Methode
Erstellt ein Projekt aus einer SharePoint-Listenelement, in dem das Projekt angegebenen Enterprise-Projekttyp (EPT) verwendet.
Namespace: Microsoft.ProjectServer.Client
Assembly: Microsoft.ProjectServer.Client (in Microsoft.ProjectServer.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Function CreateProjectFromListItem ( _
webId As Guid, _
listId As Guid, _
itemId As Integer, _
eptId As Guid _
) As ClientResult(Of Guid)
'Usage
Dim instance As WorkflowActivities
Dim webId As Guid
Dim listId As Guid
Dim itemId As Integer
Dim eptId As Guid
Dim returnValue As ClientResult(Of Guid)
returnValue = instance.CreateProjectFromListItem(webId, _
listId, itemId, eptId)
[RemoteAttribute]
public ClientResult<Guid> CreateProjectFromListItem(
Guid webId,
Guid listId,
int itemId,
Guid eptId
)
Parameter
webId
Typ: System.GuidDie GUID der SharePoint-Website (SPWeb), die die Liste enthält.
listId
Typ: System.GuidDie GUID der Liste (SPList), die das Projektelement enthält.
itemId
Typ: System.Int32Die GUID der die Projektelement (SPListItem) in der Liste.
eptId
Typ: System.GuidDie GUID der des EPT.
Rückgabewert
Typ: Microsoft.SharePoint.Client.ClientResult<Guid>
Die GUID des neu erstellten Projekts.
Hinweise
Die CreateProjectFromListItem -Methode ruft intern die WorkflowActivitiesCreateProjectFromListItem(Guid, Guid, Int32, Guid) -Methode.