EntityCollection.CalendarEntity property

Gets 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