EnterpriseResourceCollection.Remove method
Removes the specified enterprise resource from a project.
Namespace: Microsoft.ProjectServer.Client
Assembly: Microsoft.ProjectServer.Client (in Microsoft.ProjectServer.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Function Remove ( _
resource As EnterpriseResource _
) As ClientResult(Of Boolean)
'Usage
Dim instance As EnterpriseResourceCollection
Dim resource As EnterpriseResource
Dim returnValue As ClientResult(Of Boolean)
returnValue = instance.Remove(resource)
[RemoteAttribute]
public ClientResult<bool> Remove(
EnterpriseResource resource
)
Parameters
resource
Type: Microsoft.ProjectServer.Client.EnterpriseResourceThe enterprise resource to remove.
Return value
Type: Microsoft.SharePoint.Client.ClientResult<Boolean>
True if the object is removed from the collection; otherwise, False.
Remarks
If the project has been deleted, the Remove method returns ProjectDoesNotExist. If the draft project has been checked in, the Remove method returns ProjectCheckoutFailed.
See also
Reference
EnterpriseResourceCollection class