Свойство EntityCollection.CalendarEntity
Получает метаданные для объекта типа календаря.
Пространство имен: Microsoft.Office.Project.Server.Library
Сборка: Microsoft.Office.Project.Server.Library (в Microsoft.Office.Project.Server.Library.dll)
Синтаксис
'Декларация
Public ReadOnly Property CalendarEntity As Entity
Get
'Применение
Dim instance As EntityCollection
Dim value As Entity
value = instance.CalendarEntity
public Entity CalendarEntity { get; }
Значение свойства
Тип: Microsoft.Office.Project.Server.Library.Entity
Замечания
Используйте EntityCollection.Entities.CalendarEntity.UniqueId для получения идентификатора GUID объекта календаря для использования в методы PSI.
Примеры
Следующий код получает GUID объекта календаря.
using PSLibrary = Microsoft.Office.Project.Server.Library;
. . .
string calendarEntity = PSLibrary.EntityCollection.Entities.CalendarEntity.UniqueId;
Guid calendarEntityUid = new Guid(calendarEntity);