Share via


EntityCollection.ConstraintEntity property

Gets metadata for the constraint entity type.

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

Syntax

'Declaration
Public ReadOnly Property ConstraintEntity As Entity
    Get
'Usage
Dim instance As EntityCollection
Dim value As Entity

value = instance.ConstraintEntity
public Entity ConstraintEntity { get; }

Property value

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

Remarks

Use EntityCollection.Entities.ConstraintEntity.UniqueId to obtain the GUID of the assignment entity for use in PSI methods.

Examples

The following code gets the GUID of the constraint entity.

using PSLibrary = Microsoft.Office.Project.Server.Library;
. . .
string constraintEntity = PSLibrary.EntityCollection.Entities.ConstraintEntity.UniqueId;
Guid constraintEntityUid = new Guid(constraintEntity);

See also

Reference

EntityCollection class

EntityCollection members

Microsoft.Office.Project.Server.Library namespace