共用方式為


EnterpriseResourceCollection.GetById 方法

使用Name值從集合取得企業資源。

命名空間:  Microsoft.ProjectServer.Client
組件:  Microsoft.ProjectServer.Client (在 Microsoft.ProjectServer.Client.dll 中)

語法

'宣告
<RemoteAttribute> _
Public Function GetById ( _
    objectId As String _
) As EnterpriseResource
'用途
Dim instance As EnterpriseResourceCollection
Dim objectId As String
Dim returnValue As EnterpriseResource

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

參數

  • objectId
    類型:System.String

    企業資源 GUID 字串表示。

傳回值

類型:Microsoft.ProjectServer.Client.EnterpriseResource
EnterpriseResource物件。

請參閱

參照

EnterpriseResourceCollection 類別

EnterpriseResourceCollection 成員

Microsoft.ProjectServer.Client 命名空間