EntityCollection.ConstraintEntity Property

Contains 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