ProjectCollection.GetById 方法
使用Id值從集合取得專案。
命名空間: Microsoft.ProjectServer.Client
組件: Microsoft.ProjectServer.Client (在 Microsoft.ProjectServer.Client.dll 中)
語法
'宣告
<RemoteAttribute> _
Public Function GetById ( _
objectId As String _
) As PublishedProject
'用途
Dim instance As ProjectCollection
Dim objectId As String
Dim returnValue As PublishedProject
returnValue = instance.GetById(objectId)
[RemoteAttribute]
public PublishedProject GetById(
string objectId
)
參數
objectId
類型:System.String專案 GUID 的字串表示。
傳回值
類型:Microsoft.ProjectServer.Client.PublishedProject
已發佈的專案。