部分资源类型section resource type

OneNote 笔记本中的分区。A section in a OneNote notebook. 分区可包含页面。Sections can contain pages.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource.

{
  "createdBy": {"@odata.type": "microsoft.graph.identitySet"},
  "createdDateTime": "String (timestamp)",
  "id": "string (identifier)",
  "isDefault": true,
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "links": {"@odata.type": "microsoft.graph.sectionLinks"},
  "displayName": "string",
  "pagesUrl": "string",
  "self": "string"
}

属性Properties

属性Property 类型Type 说明Description
createdBycreatedBy identitySetidentitySet 识别创建项目的用户、设备和应用程序。只读。Identity of the user, device, and application which created the item. Read-only.
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset 节的创建日期和时间。The date and time when the section was created. 时间戳表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。The timestamp represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.
idid StringString 节的唯一标识符。The unique identifier of the section. 只读。Read-only.
isDefaultisDefault BooleanBoolean 指示是否为用户的默认节。Indicates whether this is the user's default section. 只读。Read-only.
lastModifiedBylastModifiedBy identitySetidentitySet 识别创建项目的用户、设备和应用程序。只读。Identity of the user, device, and application which created the item. Read-only.
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset 上次修改节的日期和时间。The date and time when the section was last modified. 时间戳表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。The timestamp represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.
linkslinks SectionLinksSectionLinks 用于打开分区的链接。Links for opening the section. 如果oneNoteClientURL安装了 OneNote 本机客户端, 则链接将在其中打开分区。The oneNoteClientURL link opens the section in the OneNote native client if it's installed. oneNoteWebURL链接将打开 web 上的 OneNote 中的分区。The oneNoteWebURL link opens the section in OneNote on the web.
displayNamedisplayName StringString 节的名称。The name of the section.
pagesUrlpagesUrl StringString pages终结点, 您可在其中获取该部分中所有页面的详细信息。The pages endpoint where you can get details for all the pages in the section. 只读。Read-only.
自学self StringString 终结点,您可在此处获取关于节的详细信息。The endpoint where you can get details about the section. 只读。Read-only.

关系Relationships

关系Relationship 类型Type 说明Description
pagespages OnenotePage 集合OnenotePage collection 分区中的一组页面。The collection of pages in the section. 此为只读属性。Read-only. 可为 Null。Nullable.
parentNotebookparentNotebook 笔记本Notebook 包含该部分的笔记本。The notebook that contains the section. 只读。Read-only.
parentSectionGroupparentSectionGroup SectionGroupSectionGroup 包含节的节组。The section group that contains the section. 只读的。Read-only.

方法Methods

方法Method 返回类型Return Type 说明Description
获取分区Get section OnenoteSectionOnenoteSection 读取节的属性和关系。Read the properties and relationships of the section.
创建页面Create page 页面Page 通过发布到指定分区中的 pages 集合来创建页面。Create a page by posting to the pages collection in the specified section.
列出页面List pages 页面集合Page collection 获取指定节中的页面集合。Get a collection of pages in the specified section.
copyToNotebookcopyToNotebook None 将分区复制到特定笔记本。Copy the section to a specific notebook.
copyToSectionGroupcopyToSectionGroup None 将分区复制到特定分区组。Copy the section to a specific section group.