次の方法で共有


EntityCollection.Entities Property

Contains the collection of Entity objects.

Namespace:  Microsoft.Office.Project.Server.Library
Assembly:  Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)

Syntax

'Declaration
Public Shared ReadOnly Property Entities As EntityCollection
    Get
'Usage
Dim value As EntityCollection

value = EntityCollection.Entities
public static EntityCollection Entities { get; }

Property Value

Type: Microsoft.Office.Project.Server.Library.EntityCollection

Remarks

Use EntityCollection.Entities to access information for specific entity.

Examples

The following code gets the GUID of the task entity.

using PSLibrary = Microsoft.Office.Project.Server.Library;
. . .
string taskEntity = PSLibrary.EntityCollection.Entities.TaskEntity.UniqueId;
Guid taskEntityUid = new Guid(taskEntity);

See Also

Reference

EntityCollection Class

EntityCollection Members

Microsoft.Office.Project.Server.Library Namespace