EntityCollection.CalendarEntity Property

Contains metadata for the calendar 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 CalendarEntity As Entity
    Get
'Usage
Dim instance As EntityCollection
Dim value As Entity

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

Property Value

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

Remarks

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

Examples

The following code gets the GUID of the calendar entity.

using PSLibrary = Microsoft.Office.Project.Server.Library;
. . .
string calendarEntity = PSLibrary.EntityCollection.Entities.CalendarEntity.UniqueId;
Guid calendarEntityUid = new Guid(calendarEntity);

See Also

Reference

EntityCollection Class

EntityCollection Members

Microsoft.Office.Project.Server.Library Namespace