Share via


PublishedTaskCollection.GetById method

Gets a task in the collection with the Id value.

Namespace:  Microsoft.ProjectServer.Client
Assembly:  Microsoft.ProjectServer.Client (in Microsoft.ProjectServer.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Function GetById ( _
    objectId As String _
) As PublishedTask
'Usage
Dim instance As PublishedTaskCollection
Dim objectId As String
Dim returnValue As PublishedTask

returnValue = instance.GetById(objectId)
[RemoteAttribute]
public PublishedTask GetById(
    string objectId
)

Parameters

  • objectId
    Type: System.String

    The string representation of the task GUID.

Return value

Type: Microsoft.ProjectServer.Client.PublishedTask
The task in the published project.

See also

Reference

PublishedTaskCollection class

PublishedTaskCollection members

Microsoft.ProjectServer.Client namespace