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