RootItemId property

ItemId? get RootItemId
Gets Id of the root item for this item.

Implementation

ItemId? get RootItemId {
  if (this.IsAttachment && this.ParentAttachment!.Owner != null) {
    return this.ParentAttachment!.Owner!.RootItemId;
  } else {
    return this.Id;
  }
}